Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / DataGridItem.cs / 1305376 / DataGridItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Web.UI; ////// 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 { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")] 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextComposition.cs
- FileRegion.cs
- XmlWrappingReader.cs
- DataTablePropertyDescriptor.cs
- DiscardableAttribute.cs
- DockPattern.cs
- AliasExpr.cs
- securitycriticaldataClass.cs
- WeakReadOnlyCollection.cs
- SatelliteContractVersionAttribute.cs
- PropertyItem.cs
- XmlSchemaExternal.cs
- RegisteredDisposeScript.cs
- Literal.cs
- BuildProviderAppliesToAttribute.cs
- SmiEventSink.cs
- TypeSystemProvider.cs
- ToolStripContentPanel.cs
- DecoderFallback.cs
- XmlAttributeCache.cs
- CapabilitiesState.cs
- TextTreePropertyUndoUnit.cs
- AccessorTable.cs
- OutputCacheSection.cs
- ProtocolsInstallComponent.cs
- HttpRuntime.cs
- RepeaterItemCollection.cs
- CreateUserWizard.cs
- CodeRegionDirective.cs
- XmlObjectSerializerReadContext.cs
- EncryptedReference.cs
- RegistryKey.cs
- Rule.cs
- MetadataPropertyvalue.cs
- HttpFileCollectionBase.cs
- ChannelBuilder.cs
- XPathPatternParser.cs
- ToolStripGrip.cs
- StructuralObject.cs
- RuleSettings.cs
- PartitionedDataSource.cs
- XAMLParseException.cs
- DbLambda.cs
- Wildcard.cs
- ThreadStartException.cs
- RegistrationContext.cs
- PowerModeChangedEventArgs.cs
- ReferenceService.cs
- TableItemStyle.cs
- TabItem.cs
- Int32EqualityComparer.cs
- AutomationEvent.cs
- ElementUtil.cs
- DataFormat.cs
- UnaryOperationBinder.cs
- ExceptionRoutedEventArgs.cs
- Timer.cs
- ToolStripMenuItemDesigner.cs
- ClientScriptManager.cs
- ResourceProviderFactory.cs
- XmlRawWriterWrapper.cs
- AuthorizationContext.cs
- TextDecorationCollection.cs
- UrlEncodedParameterWriter.cs
- XPathScanner.cs
- SimpleWebHandlerParser.cs
- PhonemeEventArgs.cs
- CacheForPrimitiveTypes.cs
- Model3D.cs
- XmlAtomicValue.cs
- ResourcesBuildProvider.cs
- AssemblyFilter.cs
- ElapsedEventArgs.cs
- Font.cs
- FileSystemEnumerable.cs
- ExceptionNotification.cs
- UriWriter.cs
- WebOperationContext.cs
- SerializationFieldInfo.cs
- WebPartConnectionsCancelVerb.cs
- MetadataArtifactLoaderCompositeFile.cs
- _AuthenticationState.cs
- HttpsChannelListener.cs
- MetadataCache.cs
- SafeArrayTypeMismatchException.cs
- RuntimeWrappedException.cs
- SqlTopReducer.cs
- DateTimeOffsetConverter.cs
- ManagedWndProcTracker.cs
- dbdatarecord.cs
- ComboBoxAutomationPeer.cs
- DrawingState.cs
- WinOEToolBoxItem.cs
- IDictionary.cs
- SettingsAttributeDictionary.cs
- CryptoHandle.cs
- HatchBrush.cs
- DataGridViewRowHeaderCell.cs
- BigInt.cs
- ProcessModuleDesigner.cs