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
- FocusWithinProperty.cs
- PropertyDescriptorGridEntry.cs
- SmtpTransport.cs
- TreeNodeBinding.cs
- StrongNameUtility.cs
- OleDbRowUpdatingEvent.cs
- FontSourceCollection.cs
- ArraySubsetEnumerator.cs
- TakeOrSkipQueryOperator.cs
- PropertyEmitterBase.cs
- SafeBitVector32.cs
- NameGenerator.cs
- BinaryReader.cs
- DataGridViewButtonCell.cs
- MemberDescriptor.cs
- XmlImplementation.cs
- MasterPageCodeDomTreeGenerator.cs
- SelectionChangedEventArgs.cs
- QueryIntervalOp.cs
- AssemblyCollection.cs
- BufferAllocator.cs
- WebPartTransformerCollection.cs
- ProxyWebPartConnectionCollection.cs
- ServiceDesigner.xaml.cs
- XmlSchemaGroupRef.cs
- StatusBarItem.cs
- StringFreezingAttribute.cs
- XmlSchemaInfo.cs
- DecimalKeyFrameCollection.cs
- LinqToSqlWrapper.cs
- PasswordTextContainer.cs
- SectionInformation.cs
- DebugView.cs
- ClientProxyGenerator.cs
- ObjectStateFormatter.cs
- WebServiceTypeData.cs
- DocumentApplicationJournalEntry.cs
- WebBrowserSiteBase.cs
- BaseValidator.cs
- Query.cs
- ToolboxSnapDragDropEventArgs.cs
- SQLStringStorage.cs
- ScriptModule.cs
- HttpClientCertificate.cs
- GregorianCalendarHelper.cs
- SuspendDesigner.cs
- SecurityCriticalDataForSet.cs
- CustomDictionarySources.cs
- ISAPIWorkerRequest.cs
- AnnotationObservableCollection.cs
- ValidationResult.cs
- Size.cs
- PagesChangedEventArgs.cs
- DeviceFilterDictionary.cs
- ObjectListFieldCollection.cs
- PrePostDescendentsWalker.cs
- mediapermission.cs
- HighlightVisual.cs
- PropertyChangedEventManager.cs
- ValueOfAction.cs
- SafeViewOfFileHandle.cs
- ExpressionBinding.cs
- RefreshEventArgs.cs
- WinFormsSecurity.cs
- HtmlInputRadioButton.cs
- SkinBuilder.cs
- BuildResultCache.cs
- Control.cs
- UIElement3DAutomationPeer.cs
- IntegerFacetDescriptionElement.cs
- TextOutput.cs
- X509ChainElement.cs
- HiddenField.cs
- MobilePage.cs
- TerminatorSinks.cs
- MemberNameValidator.cs
- XmlRawWriterWrapper.cs
- ZipArchive.cs
- MediaCommands.cs
- Decimal.cs
- ControlCachePolicy.cs
- GeneralTransform3DCollection.cs
- BaseTemplateBuildProvider.cs
- XmlSchemas.cs
- PocoEntityKeyStrategy.cs
- DeviceContext2.cs
- SoapSchemaExporter.cs
- NameObjectCollectionBase.cs
- DataComponentMethodGenerator.cs
- Int32Collection.cs
- NullExtension.cs
- SystemIPGlobalStatistics.cs
- Matrix3DValueSerializer.cs
- Viewport3DVisual.cs
- PriorityQueue.cs
- OleDbCommandBuilder.cs
- TextTreeRootNode.cs
- LinkButton.cs
- WizardStepBase.cs
- ErrorStyle.cs