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
- UserInitiatedNavigationPermission.cs
- RegexRunnerFactory.cs
- HttpConfigurationContext.cs
- ExecutionProperties.cs
- LZCodec.cs
- GenericWebPart.cs
- AnchorEditor.cs
- CallTemplateAction.cs
- Rectangle.cs
- MetaColumn.cs
- HierarchicalDataBoundControlAdapter.cs
- TdsEnums.cs
- SliderAutomationPeer.cs
- SuppressIldasmAttribute.cs
- WebPartCatalogAddVerb.cs
- EntityDesignerDataSourceView.cs
- ZipIOExtraField.cs
- XPathMessageFilterTable.cs
- SmtpAuthenticationManager.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- XmlSchemaComplexContent.cs
- DetailsViewPageEventArgs.cs
- WebBrowserHelper.cs
- Polyline.cs
- ExtendedPropertyDescriptor.cs
- CancelEventArgs.cs
- RecognizedAudio.cs
- MultiTrigger.cs
- TypeElementCollection.cs
- DataSourceSerializationException.cs
- SharedStatics.cs
- dtdvalidator.cs
- MemberHolder.cs
- XmlBoundElement.cs
- BuildProviderUtils.cs
- PolygonHotSpot.cs
- UITypeEditor.cs
- ProgressBarBrushConverter.cs
- EUCJPEncoding.cs
- DataGridViewHeaderCell.cs
- VerticalAlignConverter.cs
- BooleanConverter.cs
- HttpEncoderUtility.cs
- ProcessThread.cs
- InfoCardCryptoHelper.cs
- RSAPKCS1SignatureFormatter.cs
- LabelEditEvent.cs
- SecuritySessionSecurityTokenProvider.cs
- DataGridViewLinkCell.cs
- ToolStripOverflowButton.cs
- AmbientLight.cs
- UnsafeNativeMethods.cs
- ExtendedProperty.cs
- TraceListeners.cs
- ListDictionary.cs
- CryptoProvider.cs
- OleCmdHelper.cs
- CompositeCollectionView.cs
- AspNetHostingPermission.cs
- ConfigurationLocation.cs
- PopOutPanel.cs
- CookielessHelper.cs
- BindingValueChangedEventArgs.cs
- FamilyMapCollection.cs
- ClientConfigurationHost.cs
- SolidBrush.cs
- SplitterDesigner.cs
- DelegateTypeInfo.cs
- PartialToken.cs
- Baml2006ReaderContext.cs
- ConfigurationPermission.cs
- _ContextAwareResult.cs
- SelectManyQueryOperator.cs
- WebConfigurationHostFileChange.cs
- Renderer.cs
- BinHexDecoder.cs
- PropertyPath.cs
- IsolatedStorageFileStream.cs
- MailDefinition.cs
- XmlSchemaParticle.cs
- EventProxy.cs
- DrawingImage.cs
- OleDbConnectionInternal.cs
- SimpleType.cs
- StreamProxy.cs
- ScaleTransform.cs
- SynchronousChannel.cs
- storepermissionattribute.cs
- SubclassTypeValidator.cs
- ImpersonationContext.cs
- DataColumnCollection.cs
- TableParaClient.cs
- SoapCodeExporter.cs
- ValueChangedEventManager.cs
- SqlIdentifier.cs
- XmlSchemaInfo.cs
- ProxyWebPart.cs
- XmlSchemaSimpleContent.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- BehaviorEditorPart.cs