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
- RuleConditionDialog.cs
- BigIntegerStorage.cs
- CompoundFileStorageReference.cs
- DataColumnChangeEvent.cs
- RegisteredExpandoAttribute.cs
- ApplicationManager.cs
- BitmapEffectDrawing.cs
- MemoryMappedViewStream.cs
- GridLength.cs
- IPAddressCollection.cs
- ConfigUtil.cs
- AdPostCacheSubstitution.cs
- FileLogRecordHeader.cs
- LinearKeyFrames.cs
- HuffmanTree.cs
- PropertyItem.cs
- DataGridViewTopLeftHeaderCell.cs
- TreeView.cs
- CompilerGlobalScopeAttribute.cs
- SessionStateUtil.cs
- BamlTreeMap.cs
- ScriptIgnoreAttribute.cs
- HttpInputStream.cs
- SqlInternalConnectionSmi.cs
- __ConsoleStream.cs
- CryptoConfig.cs
- DetailsViewUpdateEventArgs.cs
- SortDescriptionCollection.cs
- DynamicDataExtensions.cs
- XPathCompileException.cs
- Rect3DValueSerializer.cs
- MappingException.cs
- SendMailErrorEventArgs.cs
- QueryIntervalOp.cs
- ControllableStoryboardAction.cs
- XmlHierarchicalDataSourceView.cs
- Message.cs
- VectorValueSerializer.cs
- XslUrlEditor.cs
- EnumValAlphaComparer.cs
- ExpressionBuilder.cs
- Boolean.cs
- SQLDateTimeStorage.cs
- XsltInput.cs
- Axis.cs
- SystemResources.cs
- AsymmetricSignatureFormatter.cs
- OrderByExpression.cs
- NetworkInformationPermission.cs
- DataTemplate.cs
- TimerEventSubscription.cs
- Light.cs
- WbmpConverter.cs
- GestureRecognitionResult.cs
- DSASignatureDeformatter.cs
- WizardStepBase.cs
- SiteOfOriginPart.cs
- StackBuilderSink.cs
- StandardBindingReliableSessionElement.cs
- XPathBinder.cs
- LexicalChunk.cs
- AddressHeader.cs
- DecoratedNameAttribute.cs
- StringUtil.cs
- WindowsFormsHelpers.cs
- Regex.cs
- OutputCacheSection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- keycontainerpermission.cs
- X509UI.cs
- TextFragmentEngine.cs
- StreamResourceInfo.cs
- Aggregates.cs
- EnterpriseServicesHelper.cs
- ContextMenuAutomationPeer.cs
- DependencyPropertyChangedEventArgs.cs
- Panel.cs
- mediaeventargs.cs
- XmlAttributeAttribute.cs
- ReflectionUtil.cs
- ByteStreamBufferedMessageData.cs
- TableRowCollection.cs
- StronglyTypedResourceBuilder.cs
- ExpandableObjectConverter.cs
- DataTableReader.cs
- Normalization.cs
- TreeNodeCollection.cs
- StickyNote.cs
- BlurBitmapEffect.cs
- WindowsGraphics2.cs
- SamlDoNotCacheCondition.cs
- InternalConfigConfigurationFactory.cs
- HttpApplicationStateWrapper.cs
- Authorization.cs
- SplineKeyFrames.cs
- _Events.cs
- SHA256CryptoServiceProvider.cs
- NameValueConfigurationCollection.cs
- RankException.cs
- NullableDecimalSumAggregationOperator.cs