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
- Message.cs
- ExpressionReplacer.cs
- Point4D.cs
- KnownTypes.cs
- CodeDirectiveCollection.cs
- VisualTreeHelper.cs
- _LocalDataStore.cs
- DataGridViewAutoSizeModeEventArgs.cs
- PerformanceCountersElement.cs
- RecipientInfo.cs
- DecoratedNameAttribute.cs
- RuleElement.cs
- BitmapCache.cs
- XmlNode.cs
- PageContentAsyncResult.cs
- Overlapped.cs
- HyperLinkColumn.cs
- PropertyGridCommands.cs
- ClientCultureInfo.cs
- DeflateStream.cs
- ScriptMethodAttribute.cs
- CopyNamespacesAction.cs
- PanelDesigner.cs
- WebBrowser.cs
- HttpModuleActionCollection.cs
- OutKeywords.cs
- EntryPointNotFoundException.cs
- InvokeBinder.cs
- IgnoreFileBuildProvider.cs
- Timer.cs
- EpmCustomContentWriterNodeData.cs
- XmlSchemaObjectTable.cs
- ArraySortHelper.cs
- IPAddress.cs
- DataTemplate.cs
- ElementAction.cs
- ColorMap.cs
- MaterialGroup.cs
- SqlInternalConnectionTds.cs
- AutomationPattern.cs
- SamlAction.cs
- InputManager.cs
- DataGridViewBand.cs
- ItemsChangedEventArgs.cs
- TrustLevelCollection.cs
- WebScriptMetadataMessage.cs
- PathHelper.cs
- SingleResultAttribute.cs
- DesignerLinkAdapter.cs
- DecimalAnimationUsingKeyFrames.cs
- designeractionlistschangedeventargs.cs
- VectorCollectionValueSerializer.cs
- SmtpNtlmAuthenticationModule.cs
- WorkflowStateRollbackService.cs
- GroupLabel.cs
- DatatypeImplementation.cs
- ImageCodecInfoPrivate.cs
- SoapAttributes.cs
- RepeatBehavior.cs
- SemanticResultKey.cs
- HttpProfileGroupBase.cs
- AssociatedControlConverter.cs
- RuleSettingsCollection.cs
- ToolboxItemSnapLineBehavior.cs
- IgnoreDeviceFilterElement.cs
- DataGridPageChangedEventArgs.cs
- TextEndOfParagraph.cs
- TdsParserSafeHandles.cs
- Stack.cs
- LinqMaximalSubtreeNominator.cs
- ParseHttpDate.cs
- EpmSourceTree.cs
- PeerIPHelper.cs
- BuildProviderAppliesToAttribute.cs
- XmlnsCache.cs
- StylusOverProperty.cs
- XAMLParseException.cs
- ToolBarButtonClickEvent.cs
- CellConstant.cs
- CustomWebEventKey.cs
- Scheduling.cs
- ParseHttpDate.cs
- DataGridViewSelectedRowCollection.cs
- DbTypeMap.cs
- MouseCaptureWithinProperty.cs
- wgx_render.cs
- TemplateBindingExpression.cs
- XmlNavigatorFilter.cs
- CallId.cs
- IList.cs
- ContextStaticAttribute.cs
- IsolatedStoragePermission.cs
- KerberosTokenFactoryCredential.cs
- RowUpdatedEventArgs.cs
- OleDbParameter.cs
- ToolStripItemDesigner.cs
- AppSecurityManager.cs
- ClientCultureInfo.cs
- FormatSettings.cs
- AppearanceEditorPart.cs