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
- Typeface.cs
- ProcessStartInfo.cs
- DiscardableAttribute.cs
- IDReferencePropertyAttribute.cs
- SecurityContextTokenValidationException.cs
- GACMembershipCondition.cs
- TypeToken.cs
- WindowsGrip.cs
- CodeExporter.cs
- AccessibleObject.cs
- ListControl.cs
- DataSourceView.cs
- _emptywebproxy.cs
- StatusInfoItem.cs
- StatusStrip.cs
- DatePickerTextBox.cs
- FileUtil.cs
- SecurityResources.cs
- TextEncodedRawTextWriter.cs
- XamlSerializer.cs
- QuerySetOp.cs
- Int16Converter.cs
- WebServicesSection.cs
- EventProviderWriter.cs
- ButtonPopupAdapter.cs
- StringFreezingAttribute.cs
- ToolboxItemCollection.cs
- ClientTargetCollection.cs
- EnumerableWrapperWeakToStrong.cs
- ExceptionUtility.cs
- TextTreeObjectNode.cs
- ImageCreator.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ScrollItemPattern.cs
- ListViewGroupItemCollection.cs
- VirtualPathUtility.cs
- LinkedResource.cs
- WebPartZoneBaseDesigner.cs
- MultiView.cs
- DataGridViewCheckBoxCell.cs
- ActivitySurrogate.cs
- OdbcDataReader.cs
- EntryWrittenEventArgs.cs
- HtmlTextArea.cs
- ListViewInsertEventArgs.cs
- DirectoryInfo.cs
- OleDbFactory.cs
- DataGridSortCommandEventArgs.cs
- GridViewSelectEventArgs.cs
- StandardTransformFactory.cs
- CodeRemoveEventStatement.cs
- EndpointIdentityConverter.cs
- ObfuscateAssemblyAttribute.cs
- TableLayoutPanel.cs
- LocationReferenceValue.cs
- ScalarConstant.cs
- TemplateXamlParser.cs
- altserialization.cs
- ObjectDataSourceEventArgs.cs
- CroppedBitmap.cs
- ReadWriteObjectLock.cs
- String.cs
- WindowsIdentity.cs
- Paragraph.cs
- SettingsBase.cs
- AdornerLayer.cs
- CollaborationHelperFunctions.cs
- JsonCollectionDataContract.cs
- FrameworkElement.cs
- ElapsedEventArgs.cs
- MsmqProcessProtocolHandler.cs
- VectorCollection.cs
- ContainerControl.cs
- XmlFormatExtensionPointAttribute.cs
- WebEventCodes.cs
- HijriCalendar.cs
- XmlEncodedRawTextWriter.cs
- _SpnDictionary.cs
- MdbDataFileEditor.cs
- StoreItemCollection.Loader.cs
- DependencyObject.cs
- IFlowDocumentViewer.cs
- NextPreviousPagerField.cs
- SectionRecord.cs
- AdapterUtil.cs
- SQLMoney.cs
- WorkflowView.cs
- DataGridViewCellMouseEventArgs.cs
- DataGridSortCommandEventArgs.cs
- HelpProvider.cs
- PackageRelationshipCollection.cs
- SystemIPInterfaceStatistics.cs
- Separator.cs
- ListViewInsertEventArgs.cs
- BufferBuilder.cs
- MachineKeyConverter.cs
- CompositeControlDesigner.cs
- TrackPointCollection.cs
- EventProxy.cs
- HierarchicalDataBoundControl.cs