Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / DataGridItem.cs / 1 / DataGridItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Web.UI; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class DataGridItem : TableRow, IDataItemContainer { private int itemIndex; private int dataSetIndex; private ListItemType itemType; private object dataItem; ///Represents an individual item in the ///. /// public DataGridItem(int itemIndex, int dataSetIndex, ListItemType itemType) { this.itemIndex = itemIndex; this.dataSetIndex = dataSetIndex; this.itemType = itemType; } ///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 DataSetIndex { get { return dataSetIndex; } } ///Indicates the data set index number. This property is read-only. ////// public virtual int ItemIndex { get { return itemIndex; } } ///Indicates the index of the item in the ///. This property is /// read-only. /// public virtual ListItemType ItemType { get { return itemType; } } ///Indicates the type of the item in the ///. /// /// protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { DataGridCommandEventArgs args = new DataGridCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } ////// /// protected internal virtual void SetItemType(ListItemType itemType) { this.itemType = itemType; } ////// /// object IDataItemContainer.DataItem { get { return DataItem; } } int IDataItemContainer.DataItemIndex { get { return DataSetIndex; } } int IDataItemContainer.DisplayIndex { get { return ItemIndex; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DebugController.cs
- SqlServer2KCompatibilityAnnotation.cs
- UInt64Storage.cs
- DataSourceSelectArguments.cs
- SQLInt16.cs
- TemplateColumn.cs
- DefaultCommandConverter.cs
- DynamicPropertyReader.cs
- OutputCacheProfileCollection.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- GlyphingCache.cs
- SimpleHandlerFactory.cs
- CheckBoxDesigner.cs
- ActiveXHost.cs
- QilTypeChecker.cs
- SimpleHandlerBuildProvider.cs
- TableAdapterManagerMethodGenerator.cs
- ListItemDetailViewAttribute.cs
- Token.cs
- RefreshPropertiesAttribute.cs
- ActivityWithResult.cs
- SymmetricKeyWrap.cs
- FrameAutomationPeer.cs
- SqlConnectionPoolProviderInfo.cs
- ListItemParagraph.cs
- UnsafeMethods.cs
- TagMapInfo.cs
- XmlSchemaComplexContentExtension.cs
- Pair.cs
- Boolean.cs
- CustomDictionarySources.cs
- GridLength.cs
- HttpConfigurationContext.cs
- ConnectionStringSettingsCollection.cs
- TextDecorations.cs
- UnsafeNativeMethods.cs
- ActivityDesignerAccessibleObject.cs
- ResXBuildProvider.cs
- SimpleMailWebEventProvider.cs
- SoapFault.cs
- FieldAccessException.cs
- RoutedEventArgs.cs
- ForEach.cs
- Crypto.cs
- BinaryObjectWriter.cs
- Exception.cs
- ProcessStartInfo.cs
- SyndicationItem.cs
- ManagementQuery.cs
- ClientUrlResolverWrapper.cs
- SQLConvert.cs
- contentDescriptor.cs
- VerificationException.cs
- InsufficientMemoryException.cs
- AlternateView.cs
- TransformedBitmap.cs
- VariableAction.cs
- ListViewGroupConverter.cs
- WindowsListViewGroup.cs
- UpdateTracker.cs
- TextServicesProperty.cs
- CqlParser.cs
- CryptoApi.cs
- XmlSchemaSubstitutionGroup.cs
- EllipseGeometry.cs
- CookielessHelper.cs
- WebPartZoneBase.cs
- ObjectStorage.cs
- ConnectionManagementElementCollection.cs
- UnaryQueryOperator.cs
- OneOfTypeConst.cs
- ThicknessAnimationBase.cs
- MailWriter.cs
- GeometryDrawing.cs
- HMACRIPEMD160.cs
- MenuStrip.cs
- SubtreeProcessor.cs
- DictionarySectionHandler.cs
- TypeLibConverter.cs
- LayoutEditorPart.cs
- XmlUtil.cs
- CustomErrorsSection.cs
- MailBnfHelper.cs
- IxmlLineInfo.cs
- SqlProviderManifest.cs
- Int32EqualityComparer.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DispatchChannelSink.cs
- PerspectiveCamera.cs
- UserControlParser.cs
- XmlNavigatorFilter.cs
- SplayTreeNode.cs
- FastEncoderWindow.cs
- HttpProfileGroupBase.cs
- BinaryHeap.cs
- EditingCoordinator.cs
- Types.cs
- CodeStatement.cs
- EnumerableRowCollectionExtensions.cs
- BitConverter.cs