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
- CategoryAttribute.cs
- GlyphTypeface.cs
- PlainXmlSerializer.cs
- RealizationContext.cs
- Thread.cs
- ClassHandlersStore.cs
- ExceptionRoutedEventArgs.cs
- TextBoxBase.cs
- tibetanshape.cs
- UnaryNode.cs
- XmlSerializableReader.cs
- ListViewInsertedEventArgs.cs
- DetailsViewDesigner.cs
- BitmapVisualManager.cs
- AdornedElementPlaceholder.cs
- AttributeCollection.cs
- WebDescriptionAttribute.cs
- TemplateNameScope.cs
- ObjectTypeMapping.cs
- SqlFactory.cs
- RectIndependentAnimationStorage.cs
- WebConfigurationManager.cs
- Events.cs
- SchemaTypeEmitter.cs
- Attribute.cs
- OrderingQueryOperator.cs
- ButtonField.cs
- Cloud.cs
- ReceiveErrorHandling.cs
- RefreshEventArgs.cs
- Zone.cs
- BooleanFunctions.cs
- DetailsViewInsertEventArgs.cs
- QueueSurrogate.cs
- ResourceDisplayNameAttribute.cs
- DataGridViewAddColumnDialog.cs
- GroupDescription.cs
- CompiledQueryCacheEntry.cs
- MarshalByRefObject.cs
- RestHandlerFactory.cs
- JsonSerializer.cs
- Expander.cs
- RoleService.cs
- ApplicationProxyInternal.cs
- CryptoConfig.cs
- PersonalizationStateQuery.cs
- QueryableDataSourceHelper.cs
- TraceHandler.cs
- SqlDataReaderSmi.cs
- storepermissionattribute.cs
- counter.cs
- SimpleModelProvider.cs
- LogLogRecordHeader.cs
- TrustSection.cs
- AppModelKnownContentFactory.cs
- Substitution.cs
- PeerNameRegistration.cs
- Rect3DConverter.cs
- DocumentViewerBaseAutomationPeer.cs
- ScrollBar.cs
- EncoderFallback.cs
- ResolveNameEventArgs.cs
- TempFiles.cs
- SelectingProviderEventArgs.cs
- WsdlEndpointConversionContext.cs
- GenericPrincipal.cs
- DispatchWrapper.cs
- WpfPayload.cs
- AddressHeaderCollectionElement.cs
- ClientConvert.cs
- CharacterHit.cs
- ImageSourceConverter.cs
- ClipboardProcessor.cs
- DataGridColumn.cs
- SystemIPv4InterfaceProperties.cs
- MasterPage.cs
- SHA512.cs
- ErrorHandlerModule.cs
- CatalogPart.cs
- MergeFilterQuery.cs
- InvalidComObjectException.cs
- UpdateTranslator.cs
- WebBrowserProgressChangedEventHandler.cs
- Point3D.cs
- CalendarData.cs
- TextRangeBase.cs
- IdnMapping.cs
- TableCellCollection.cs
- HotSpot.cs
- ServiceReflector.cs
- Itemizer.cs
- DrawingVisualDrawingContext.cs
- TimelineGroup.cs
- NativeCppClassAttribute.cs
- DynamicDataRoute.cs
- ContentType.cs
- ModelVisual3D.cs
- IdentityNotMappedException.cs
- FileEnumerator.cs
- PaperSize.cs