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
- RectangleHotSpot.cs
- FormViewInsertedEventArgs.cs
- TypeSystemProvider.cs
- AppliedDeviceFiltersDialog.cs
- ContentPresenter.cs
- ImageDrawing.cs
- StringUtil.cs
- TextEndOfSegment.cs
- PermissionRequestEvidence.cs
- PermissionAttributes.cs
- DaylightTime.cs
- AnnotationService.cs
- TransactionFlowProperty.cs
- StateManagedCollection.cs
- Brush.cs
- GlyphTypeface.cs
- EdmError.cs
- NodeFunctions.cs
- ExpressionParser.cs
- InkCanvas.cs
- connectionpool.cs
- RequiredFieldValidator.cs
- SectionInput.cs
- MsmqNonTransactedPoisonHandler.cs
- QueryTask.cs
- ServiceModelSecurityTokenRequirement.cs
- RadioButtonFlatAdapter.cs
- StyleSelector.cs
- WebPartEventArgs.cs
- SingleSelectRootGridEntry.cs
- Int64KeyFrameCollection.cs
- ChainedAsyncResult.cs
- SqlDuplicator.cs
- FlowNode.cs
- CollectionsUtil.cs
- DebugView.cs
- NetCodeGroup.cs
- CompositeFontInfo.cs
- _SslState.cs
- KeyTime.cs
- AssemblyNameProxy.cs
- PeerNearMe.cs
- PartialArray.cs
- ExpandCollapsePattern.cs
- GetUserPreferenceRequest.cs
- DescendantOverDescendantQuery.cs
- ManagementScope.cs
- ConcurrentQueue.cs
- FilteredXmlReader.cs
- QueryPageSettingsEventArgs.cs
- CodeCatchClauseCollection.cs
- FormDesigner.cs
- FontConverter.cs
- CodeSubDirectoriesCollection.cs
- IconHelper.cs
- OciLobLocator.cs
- RegexRunner.cs
- VoiceChangeEventArgs.cs
- PropertyReference.cs
- WebPartMenuStyle.cs
- Convert.cs
- DecimalConverter.cs
- SchemaHelper.cs
- StorageEntitySetMapping.cs
- ModuleElement.cs
- TemplateParser.cs
- EnumType.cs
- WebPartDisplayModeEventArgs.cs
- RadioButton.cs
- HtmlLink.cs
- SortExpressionBuilder.cs
- Thickness.cs
- StringSorter.cs
- AbstractExpressions.cs
- TextTreeUndo.cs
- XmlSerializerVersionAttribute.cs
- NamespaceMapping.cs
- InternalMappingException.cs
- VerifyHashRequest.cs
- DataContractSet.cs
- _LoggingObject.cs
- DesignTimeTemplateParser.cs
- SimpleApplicationHost.cs
- DriveNotFoundException.cs
- EarlyBoundInfo.cs
- PerformanceCounterPermissionEntry.cs
- ProcessHostMapPath.cs
- Thickness.cs
- FunctionQuery.cs
- IList.cs
- Enlistment.cs
- CurrentChangingEventArgs.cs
- AssemblyAttributesGoHere.cs
- BasePattern.cs
- TypeConverterHelper.cs
- TableLayoutSettingsTypeConverter.cs
- BidirectionalDictionary.cs
- HtmlSelect.cs
- TdsParserSafeHandles.cs
- CoTaskMemUnicodeSafeHandle.cs