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
- cookiecontainer.cs
- ObjectListComponentEditor.cs
- OrderedHashRepartitionStream.cs
- DotExpr.cs
- CheckedPointers.cs
- UTF32Encoding.cs
- CallbackHandler.cs
- CapacityStreamGeometryContext.cs
- StoryFragments.cs
- PointAnimation.cs
- SafeCoTaskMem.cs
- Utilities.cs
- Clipboard.cs
- SyntaxCheck.cs
- WindowsToolbarItemAsMenuItem.cs
- securitycriticaldataClass.cs
- DataGridCell.cs
- AssociationSetMetadata.cs
- SequentialUshortCollection.cs
- CollectionsUtil.cs
- LineProperties.cs
- ConfigXmlAttribute.cs
- EmbeddedObject.cs
- TextSelectionHelper.cs
- DbConnectionInternal.cs
- WorkflowExecutor.cs
- ManifestResourceInfo.cs
- ItemsChangedEventArgs.cs
- TimeoutValidationAttribute.cs
- ConfigUtil.cs
- FunctionParameter.cs
- ListItemConverter.cs
- SiteMapSection.cs
- SelectionUIHandler.cs
- CmsInterop.cs
- ErrorWrapper.cs
- SystemSounds.cs
- RangeBase.cs
- PromptEventArgs.cs
- TraceSwitch.cs
- BooleanStorage.cs
- DragDeltaEventArgs.cs
- ToolStripItemEventArgs.cs
- AutomationElementCollection.cs
- WebPartDisplayMode.cs
- BooleanConverter.cs
- Hyperlink.cs
- WebPartDisplayMode.cs
- HideDisabledControlAdapter.cs
- HtmlTableRow.cs
- ResponseBodyWriter.cs
- LinkArea.cs
- EntityDataSourceMemberPath.cs
- SelectionPatternIdentifiers.cs
- controlskin.cs
- HtmlInputRadioButton.cs
- PassportAuthenticationEventArgs.cs
- CodeGenHelper.cs
- ContentValidator.cs
- JulianCalendar.cs
- ProfilePropertySettingsCollection.cs
- TextParagraphView.cs
- PropertyMetadata.cs
- GcSettings.cs
- XmlDataLoader.cs
- SqlXml.cs
- XappLauncher.cs
- BitmapEffectCollection.cs
- UIElement3D.cs
- ProfileSection.cs
- SoapEnumAttribute.cs
- JsonFormatWriterGenerator.cs
- EntityContainer.cs
- _NestedSingleAsyncResult.cs
- SendMailErrorEventArgs.cs
- PrincipalPermission.cs
- sqlstateclientmanager.cs
- ToolstripProfessionalRenderer.cs
- Types.cs
- PerfCounterSection.cs
- MarkupExtensionParser.cs
- TextProperties.cs
- XDRSchema.cs
- DataGridViewImageColumn.cs
- DataGridItemAttachedStorage.cs
- TablePattern.cs
- WebSysDescriptionAttribute.cs
- ControlBindingsCollection.cs
- TextTreeTextBlock.cs
- GACMembershipCondition.cs
- SqlSupersetValidator.cs
- ProtocolsConfigurationEntry.cs
- ParameterBuilder.cs
- AmbientLight.cs
- WCFModelStrings.Designer.cs
- FixedSOMPageConstructor.cs
- SiteMapPath.cs
- ServicePointManagerElement.cs
- PointCollectionConverter.cs
- InstanceKeyCompleteException.cs