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
- ControlType.cs
- InlinedAggregationOperator.cs
- PolicyStatement.cs
- Int16Storage.cs
- EncryptedReference.cs
- HtmlGenericControl.cs
- NetworkStream.cs
- WorkflowLayouts.cs
- ListenerElementsCollection.cs
- ReturnEventArgs.cs
- DataServiceResponse.cs
- SymbolPair.cs
- PersonalizationStateInfoCollection.cs
- ImageSourceValueSerializer.cs
- Visual3DCollection.cs
- SecurityElement.cs
- Decimal.cs
- ReadOnlyObservableCollection.cs
- DialogResultConverter.cs
- InertiaTranslationBehavior.cs
- _HeaderInfoTable.cs
- Track.cs
- _UriTypeConverter.cs
- Oci.cs
- DeviceContext.cs
- PartialCachingControl.cs
- PatternMatcher.cs
- SqlWebEventProvider.cs
- HostingEnvironmentException.cs
- SharedPersonalizationStateInfo.cs
- SignatureHelper.cs
- DependencyObjectValidator.cs
- DoubleAnimation.cs
- DurableServiceAttribute.cs
- TdsValueSetter.cs
- Pair.cs
- DBConnectionString.cs
- XmlSerializerSection.cs
- MaterialGroup.cs
- HostingEnvironmentException.cs
- ViewManager.cs
- BooleanAnimationUsingKeyFrames.cs
- ProviderIncompatibleException.cs
- DocumentsTrace.cs
- CommandEventArgs.cs
- HtmlProps.cs
- PseudoWebRequest.cs
- RSAProtectedConfigurationProvider.cs
- OrderedDictionary.cs
- ParallelSeparator.xaml.cs
- HttpModuleCollection.cs
- NullRuntimeConfig.cs
- CollectionBase.cs
- WebSysDescriptionAttribute.cs
- DataBoundControl.cs
- DiagnosticSection.cs
- LineProperties.cs
- UpdatePanelControlTrigger.cs
- PeerCollaborationPermission.cs
- Pair.cs
- FontWeights.cs
- SQLBoolean.cs
- RSAPKCS1KeyExchangeFormatter.cs
- BrowserCapabilitiesFactoryBase.cs
- ProcessHost.cs
- BufferBuilder.cs
- MobileUserControlDesigner.cs
- _DomainName.cs
- PreviewPrintController.cs
- ProcessingInstructionAction.cs
- GenericWebPart.cs
- ScriptRegistrationManager.cs
- ConfigurationStrings.cs
- PenCursorManager.cs
- XmlRootAttribute.cs
- BamlMapTable.cs
- SqlDataReaderSmi.cs
- VideoDrawing.cs
- PropertyTab.cs
- SchemaNotation.cs
- BasicViewGenerator.cs
- SystemNetHelpers.cs
- CatalogPart.cs
- SystemDiagnosticsSection.cs
- MdiWindowListItemConverter.cs
- Win32Exception.cs
- WebBaseEventKeyComparer.cs
- Int16Animation.cs
- DataGridLinkButton.cs
- CatchBlock.cs
- AuthenticationSchemesHelper.cs
- EntityDataSourceMemberPath.cs
- PreservationFileReader.cs
- EventWaitHandleSecurity.cs
- ClientSideProviderDescription.cs
- AutoResetEvent.cs
- SqlGenericUtil.cs
- CompositeCollectionView.cs
- TextBlockAutomationPeer.cs
- ReaderWriterLock.cs