Code:
/ DotNET / DotNET / 8.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
- TypeConstant.cs
- LayoutTable.cs
- XsdDuration.cs
- InputLanguageEventArgs.cs
- LostFocusEventManager.cs
- EntityProviderServices.cs
- _Rfc2616CacheValidators.cs
- StringExpressionSet.cs
- UnlockInstanceAsyncResult.cs
- brushes.cs
- EncoderBestFitFallback.cs
- NativeMethods.cs
- SecurityTokenContainer.cs
- EventMappingSettings.cs
- LinkClickEvent.cs
- SpellerInterop.cs
- SendMessageRecord.cs
- FrameworkTextComposition.cs
- TimelineCollection.cs
- EntityUtil.cs
- TempEnvironment.cs
- WorkerRequest.cs
- HttpGetServerProtocol.cs
- _KerberosClient.cs
- ToolboxComponentsCreatedEventArgs.cs
- SelfIssuedAuthAsymmetricKey.cs
- References.cs
- SqlDataSourceStatusEventArgs.cs
- RegexMatch.cs
- WindowsPrincipal.cs
- QueryConverter.cs
- TripleDESCryptoServiceProvider.cs
- BitmapScalingModeValidation.cs
- PaginationProgressEventArgs.cs
- RectangleConverter.cs
- MessageDecoder.cs
- FieldTemplateUserControl.cs
- PersistenceTypeAttribute.cs
- TypeInfo.cs
- CheckBoxList.cs
- ActionMessageFilterTable.cs
- ParameterToken.cs
- DataTrigger.cs
- ImageConverter.cs
- EventArgs.cs
- EndGetFileNameFromUserRequest.cs
- BitmapEditor.cs
- UIElementCollection.cs
- XsltContext.cs
- PerspectiveCamera.cs
- XPathDescendantIterator.cs
- EditorBrowsableAttribute.cs
- WaveHeader.cs
- BidOverLoads.cs
- XmlSchemaSimpleContent.cs
- Win32Interop.cs
- ExpressionList.cs
- SelectionPatternIdentifiers.cs
- TextServicesCompartmentContext.cs
- GridViewAutomationPeer.cs
- AssociationSet.cs
- HeaderedItemsControl.cs
- DesignerVerb.cs
- RotateTransform.cs
- DbMetaDataCollectionNames.cs
- SafeFileHandle.cs
- MenuItem.cs
- TextTreeText.cs
- LayoutExceptionEventArgs.cs
- Msec.cs
- WebPartConnectionsCloseVerb.cs
- ObjectIDGenerator.cs
- FrugalMap.cs
- QilGenerator.cs
- XmlElementCollection.cs
- BitmapEffectInput.cs
- MouseBinding.cs
- PerformanceCounterPermission.cs
- CheckBoxField.cs
- HMACMD5.cs
- DataGridRow.cs
- AlignmentXValidation.cs
- CapabilitiesUse.cs
- ADMembershipProvider.cs
- ping.cs
- HttpHandlerActionCollection.cs
- NullableFloatAverageAggregationOperator.cs
- LockCookie.cs
- UdpTransportSettings.cs
- XmlSchemaInclude.cs
- UpDownEvent.cs
- JoinSymbol.cs
- OpenTypeLayoutCache.cs
- SessionStateContainer.cs
- FragmentQueryProcessor.cs
- GeometryGroup.cs
- ImageCreator.cs
- MsmqHostedTransportManager.cs
- followingsibling.cs
- PerspectiveCamera.cs