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
- MergeFilterQuery.cs
- QilVisitor.cs
- GeneratedView.cs
- Animatable.cs
- RandomNumberGenerator.cs
- PolicyDesigner.cs
- FontResourceCache.cs
- BitmapFrameEncode.cs
- AssemblyAttributesGoHere.cs
- FileEnumerator.cs
- WebMethodAttribute.cs
- CodeTypeDelegate.cs
- HashUtility.cs
- MachineKeyConverter.cs
- WebEventCodes.cs
- UnicodeEncoding.cs
- ParamArrayAttribute.cs
- ObjectStateFormatter.cs
- HelpInfo.cs
- DesignerRegionCollection.cs
- FormsAuthenticationModule.cs
- CategoryEditor.cs
- WebPartUtil.cs
- WeakEventTable.cs
- Schema.cs
- Type.cs
- HtmlTableCellCollection.cs
- MetadataArtifactLoaderCompositeFile.cs
- LocalizationParserHooks.cs
- MatrixCamera.cs
- ListParagraph.cs
- ResourceDisplayNameAttribute.cs
- TextServicesLoader.cs
- SqlMethodCallConverter.cs
- PropertyReferenceExtension.cs
- InternalPermissions.cs
- TextElementCollectionHelper.cs
- AuthenticationModuleElementCollection.cs
- SafeRightsManagementSessionHandle.cs
- ListControl.cs
- XamlReader.cs
- Oci.cs
- Utility.cs
- VectorCollectionValueSerializer.cs
- LinkLabelLinkClickedEvent.cs
- EnvelopedSignatureTransform.cs
- DecimalStorage.cs
- NetworkInterface.cs
- ImageDrawing.cs
- ProfileProvider.cs
- GroupQuery.cs
- ObjectDataSourceMethodEventArgs.cs
- SSmlParser.cs
- ComplexTypeEmitter.cs
- NetworkInterface.cs
- sitestring.cs
- VectorCollection.cs
- HostingPreferredMapPath.cs
- PageCatalogPart.cs
- TemplateBindingExpression.cs
- TransactionException.cs
- WebEventTraceProvider.cs
- ConfigXmlWhitespace.cs
- CustomErrorsSectionWrapper.cs
- _NestedMultipleAsyncResult.cs
- Point3DValueSerializer.cs
- DataSourceUtil.cs
- SettingsProperty.cs
- KeyboardDevice.cs
- LinqDataSourceContextEventArgs.cs
- ActivityIdHeader.cs
- ToolStripHighContrastRenderer.cs
- FixedSOMImage.cs
- LinqDataSourceDeleteEventArgs.cs
- Rule.cs
- DynamicMethod.cs
- DoubleIndependentAnimationStorage.cs
- AutoGeneratedFieldProperties.cs
- BlockCollection.cs
- TemplatePartAttribute.cs
- Missing.cs
- DataTableNameHandler.cs
- ToolStripArrowRenderEventArgs.cs
- KeyValueConfigurationCollection.cs
- Invariant.cs
- OutputCacheSettings.cs
- LocalServiceSecuritySettings.cs
- SystemThemeKey.cs
- StyleXamlParser.cs
- UserMapPath.cs
- ClearTypeHintValidation.cs
- PKCS1MaskGenerationMethod.cs
- InputProviderSite.cs
- HiddenFieldDesigner.cs
- SequentialUshortCollection.cs
- DataGridViewCellStateChangedEventArgs.cs
- MetadataArtifactLoaderResource.cs
- Drawing.cs
- TileModeValidation.cs
- BamlLocalizabilityResolver.cs