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
- GridViewDeleteEventArgs.cs
- WebHeaderCollection.cs
- Delegate.cs
- GlyphRunDrawing.cs
- MetafileHeaderWmf.cs
- StreamedWorkflowDefinitionContext.cs
- ObjectViewFactory.cs
- AssemblyInfo.cs
- XmlValidatingReaderImpl.cs
- MembershipValidatePasswordEventArgs.cs
- HandleCollector.cs
- OverflowException.cs
- ProcessHostConfigUtils.cs
- FormViewCommandEventArgs.cs
- PersonalizablePropertyEntry.cs
- SynchronizationHandlesCodeDomSerializer.cs
- odbcmetadatacolumnnames.cs
- CopyOfAction.cs
- Validator.cs
- LifetimeServices.cs
- DataControlFieldCollection.cs
- SendActivityEventArgs.cs
- EventMap.cs
- Operators.cs
- ExternalDataExchangeService.cs
- LinearQuaternionKeyFrame.cs
- XmlSerializerFactory.cs
- StreamInfo.cs
- Highlights.cs
- IISUnsafeMethods.cs
- RuleSettingsCollection.cs
- XmlValueConverter.cs
- BindingSource.cs
- ViewManager.cs
- CustomLineCap.cs
- ZoneIdentityPermission.cs
- DataGridViewRowsRemovedEventArgs.cs
- DataKeyCollection.cs
- ObjectListFieldCollection.cs
- StickyNoteAnnotations.cs
- SharedTcpTransportManager.cs
- ToolStripLocationCancelEventArgs.cs
- HtmlDocument.cs
- WebRequestModuleElementCollection.cs
- VScrollProperties.cs
- WebPartHelpVerb.cs
- DelegateBodyWriter.cs
- AccessViolationException.cs
- ParameterExpression.cs
- EventLogEntry.cs
- EnumUnknown.cs
- InkCanvas.cs
- CollectionContainer.cs
- WmfPlaceableFileHeader.cs
- IPHostEntry.cs
- UnionCqlBlock.cs
- X509Utils.cs
- DisplayInformation.cs
- ExpressionBuilderCollection.cs
- DocumentGrid.cs
- XmlBufferReader.cs
- PeerName.cs
- MatchingStyle.cs
- precedingsibling.cs
- DefaultAuthorizationContext.cs
- SHA1CryptoServiceProvider.cs
- EntityViewGenerationAttribute.cs
- InlinedAggregationOperator.cs
- PlainXmlSerializer.cs
- CompModSwitches.cs
- CodeComment.cs
- QilTargetType.cs
- SiteMapSection.cs
- EntityModelBuildProvider.cs
- SplayTreeNode.cs
- AttributeUsageAttribute.cs
- SourceSwitch.cs
- FormatConvertedBitmap.cs
- ExpressionBuilderContext.cs
- ActivitiesCollection.cs
- RunInstallerAttribute.cs
- MultiDataTrigger.cs
- FilePresentation.cs
- ColumnBinding.cs
- KeyManager.cs
- WsdlBuildProvider.cs
- indexingfiltermarshaler.cs
- SoapIgnoreAttribute.cs
- KnownColorTable.cs
- XmlComplianceUtil.cs
- _LocalDataStoreMgr.cs
- InkCanvasAutomationPeer.cs
- DataSetMappper.cs
- HierarchicalDataTemplate.cs
- ForEachAction.cs
- NativeMethods.cs
- LicenseProviderAttribute.cs
- MessageQueueInstaller.cs
- ListDesigner.cs
- GridViewColumnHeader.cs