Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / GridViewRow.cs / 1 / GridViewRow.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class GridViewRow : TableRow, IDataItemContainer { private int _rowIndex; private int _dataItemIndex; private DataControlRowType _rowType; private DataControlRowState _rowState; private object _dataItem; ///Represents an individual row in the ///. /// public GridViewRow(int rowIndex, int dataItemIndex, DataControlRowType rowType, DataControlRowState rowState) { this._rowIndex = rowIndex; this._dataItemIndex = dataItemIndex; this._rowType = rowType; this._rowState = rowState; } ///Initializes a new instance of the ///class. /// public virtual object DataItem { get { return _dataItem; } set { _dataItem = value; } } ///Represents an item in the ///. /// public virtual int DataItemIndex { get { return _dataItemIndex; } } ///Indicates the data set index number. This property is read-only. ////// public virtual int RowIndex { get { return _rowIndex; } } ///Indicates the index of the row in the ///. This property is /// read-only. /// public virtual DataControlRowState RowState { get { return _rowState; } set { _rowState = value; } } ///Indicates the type of the row in the ///. /// public virtual DataControlRowType RowType { get { return _rowType; } set { _rowType = value; } } ///Indicates the type of the row in the ///. /// /// protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { GridViewCommandEventArgs args = new GridViewCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } ////// /// object IDataItemContainer.DataItem { get { return DataItem; } } int IDataItemContainer.DataItemIndex { get { return DataItemIndex; } } int IDataItemContainer.DisplayIndex { get { return RowIndex; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextContainerHelper.cs
- SHA512Managed.cs
- UInt16Converter.cs
- SafeNativeMethods.cs
- RadioButton.cs
- Literal.cs
- FreeFormPanel.cs
- PropertyGridView.cs
- GenericXmlSecurityToken.cs
- TextAnchor.cs
- DataGridViewHitTestInfo.cs
- Publisher.cs
- GridItemProviderWrapper.cs
- ZoneButton.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- XmlComment.cs
- ListManagerBindingsCollection.cs
- XmlHierarchicalEnumerable.cs
- VectorAnimationUsingKeyFrames.cs
- ExceptQueryOperator.cs
- WpfGeneratedKnownTypes.cs
- dtdvalidator.cs
- DbConnectionClosed.cs
- MsdtcClusterUtils.cs
- DataViewListener.cs
- ParamArrayAttribute.cs
- mediaeventargs.cs
- StdValidatorsAndConverters.cs
- WebPartConnectionsCancelEventArgs.cs
- MD5HashHelper.cs
- CheckoutException.cs
- GridItemProviderWrapper.cs
- GridPattern.cs
- QueryStringParameter.cs
- ViewEventArgs.cs
- Glyph.cs
- AccessDataSourceView.cs
- FileIOPermission.cs
- XmlObjectSerializerReadContext.cs
- RewritingValidator.cs
- RelatedImageListAttribute.cs
- MSHTMLHostUtil.cs
- HostedHttpTransportManager.cs
- ClientScriptManager.cs
- HttpListenerRequest.cs
- ScrollableControl.cs
- UnaryNode.cs
- ApplicationContext.cs
- UncommonField.cs
- Int32KeyFrameCollection.cs
- Registry.cs
- FilteredAttributeCollection.cs
- AnnotationComponentChooser.cs
- ArgumentOutOfRangeException.cs
- QilChoice.cs
- StateMachineWorkflowInstance.cs
- WindowsGrip.cs
- TrustVersion.cs
- FileChangeNotifier.cs
- PropertyGroupDescription.cs
- X509ClientCertificateAuthentication.cs
- Resources.Designer.cs
- SerialErrors.cs
- WebContext.cs
- AutomationProperties.cs
- DataDesignUtil.cs
- XmlCDATASection.cs
- GlyphCache.cs
- compensatingcollection.cs
- BlurEffect.cs
- RuntimeConfigLKG.cs
- HostingEnvironmentSection.cs
- CodeMethodMap.cs
- ProcessThread.cs
- TimeManager.cs
- SqlStream.cs
- SettingsContext.cs
- CqlIdentifiers.cs
- CounterCreationData.cs
- SubtreeProcessor.cs
- SafeRegistryKey.cs
- ZoneLinkButton.cs
- XamlSerializer.cs
- Decorator.cs
- HuffmanTree.cs
- UnaryExpressionHelper.cs
- XmlSerializerAssemblyAttribute.cs
- SqlCacheDependencyDatabase.cs
- TemplateKeyConverter.cs
- MultiDataTrigger.cs
- XmlILTrace.cs
- SubMenuStyle.cs
- SqlServices.cs
- UTF7Encoding.cs
- WmpBitmapDecoder.cs
- ConsumerConnectionPoint.cs
- Error.cs
- ChannelDispatcher.cs
- UndoManager.cs
- HttpPostedFile.cs