Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ClientScriptManager.cs
- FlowPanelDesigner.cs
- XmlStreamNodeWriter.cs
- ExcludeFromCodeCoverageAttribute.cs
- PageBreakRecord.cs
- EventDrivenDesigner.cs
- PageAsyncTask.cs
- DataServiceBuildProvider.cs
- ServiceModelActivity.cs
- DBDataPermissionAttribute.cs
- TranslateTransform3D.cs
- WebBrowserPermission.cs
- ParameterToken.cs
- MethodToken.cs
- DataSvcMapFile.cs
- TdsParserSafeHandles.cs
- RepeaterDesigner.cs
- XPathAxisIterator.cs
- XmlCustomFormatter.cs
- TableProviderWrapper.cs
- Rectangle.cs
- SqlConnectionStringBuilder.cs
- ClassHandlersStore.cs
- mediaclock.cs
- ProfileServiceManager.cs
- SystemIPInterfaceProperties.cs
- SetterBaseCollection.cs
- X509Extension.cs
- AtomicFile.cs
- RawContentTypeMapper.cs
- NativeMethods.cs
- CryptoConfig.cs
- OperationSelectorBehavior.cs
- FixedSOMSemanticBox.cs
- FileDialogCustomPlaces.cs
- SoapConverter.cs
- AutomationEventArgs.cs
- WindowsGrip.cs
- HttpModule.cs
- NativeWrapper.cs
- DataServiceExpressionVisitor.cs
- PageHandlerFactory.cs
- MethodExpr.cs
- iisPickupDirectory.cs
- MetadataArtifactLoaderResource.cs
- DescendantBaseQuery.cs
- ReadOnlyMetadataCollection.cs
- MDIWindowDialog.cs
- FontCollection.cs
- CorrelationService.cs
- CachedFontFamily.cs
- SelectorItemAutomationPeer.cs
- Tablet.cs
- HandlerBase.cs
- ToolboxItem.cs
- StrongNameMembershipCondition.cs
- CodeRegionDirective.cs
- LexicalChunk.cs
- XdrBuilder.cs
- TextTreeExtractElementUndoUnit.cs
- XmlException.cs
- translator.cs
- Aggregates.cs
- DataControlFieldCollection.cs
- IIS7UserPrincipal.cs
- SchemaNamespaceManager.cs
- Table.cs
- ApplicationCommands.cs
- CommonGetThemePartSize.cs
- WebPartConnectionsCloseVerb.cs
- SqlUtil.cs
- Container.cs
- ActivationServices.cs
- Imaging.cs
- BaseParagraph.cs
- ProcessHostServerConfig.cs
- PersonalizationStateInfoCollection.cs
- AssociationType.cs
- ResourceDescriptionAttribute.cs
- DataGridClipboardCellContent.cs
- RunClient.cs
- KeyValueSerializer.cs
- _ChunkParse.cs
- WebPartAuthorizationEventArgs.cs
- figurelengthconverter.cs
- CornerRadius.cs
- _CookieModule.cs
- SurrogateSelector.cs
- WindowsIdentity.cs
- DynamicVirtualDiscoSearcher.cs
- RedBlackList.cs
- DataControlFieldHeaderCell.cs
- SmiContextFactory.cs
- PageWrapper.cs
- InputEventArgs.cs
- DeobfuscatingStream.cs
- HiddenFieldPageStatePersister.cs
- SQLResource.cs
- Crypto.cs
- DragDeltaEventArgs.cs