Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / DataGridItem.cs / 1 / DataGridItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Web.UI; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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 { 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. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Web.UI; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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 { 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
- formatter.cs
- Column.cs
- ItemTypeToolStripMenuItem.cs
- PerformanceCounterPermissionAttribute.cs
- SeekableMessageNavigator.cs
- UnaryNode.cs
- _OverlappedAsyncResult.cs
- PackagingUtilities.cs
- PointValueSerializer.cs
- ProfileSettings.cs
- CryptographicAttribute.cs
- DictionaryManager.cs
- QueryContinueDragEventArgs.cs
- DecimalConstantAttribute.cs
- ConsumerConnectionPoint.cs
- IxmlLineInfo.cs
- ProfileGroupSettingsCollection.cs
- XmlSchemaAppInfo.cs
- DictationGrammar.cs
- Block.cs
- InternalCache.cs
- XamlFilter.cs
- StyleXamlParser.cs
- XamlInterfaces.cs
- EncodingNLS.cs
- UTF8Encoding.cs
- ACL.cs
- TableProvider.cs
- EntityDataSourceSelectingEventArgs.cs
- XXXInfos.cs
- CommandBindingCollection.cs
- DataGridViewLayoutData.cs
- _NegoState.cs
- RightsManagementEncryptedStream.cs
- SystemWebSectionGroup.cs
- KeyValueInternalCollection.cs
- EntityDataSourceWrapperCollection.cs
- DuplexChannel.cs
- ModelPropertyDescriptor.cs
- DoubleKeyFrameCollection.cs
- VersionPair.cs
- ExecutedRoutedEventArgs.cs
- TextWriterEngine.cs
- ClaimSet.cs
- ExpressionReplacer.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- InputElement.cs
- ItemCollection.cs
- StringUtil.cs
- RenderingBiasValidation.cs
- ObjectStateFormatter.cs
- GifBitmapDecoder.cs
- CompositionTarget.cs
- GridToolTip.cs
- HashMembershipCondition.cs
- PeerApplicationLaunchInfo.cs
- CorrelationManager.cs
- Invariant.cs
- HighlightComponent.cs
- NullableDoubleAverageAggregationOperator.cs
- WebPartDisplayModeEventArgs.cs
- ApplicationGesture.cs
- TrustSection.cs
- RawStylusInputCustomDataList.cs
- IgnoreFileBuildProvider.cs
- EntityWithChangeTrackerStrategy.cs
- EntityProviderServices.cs
- OAVariantLib.cs
- MultiByteCodec.cs
- XmlC14NWriter.cs
- DocumentViewerBase.cs
- ToolStripContentPanel.cs
- DataServiceRequestOfT.cs
- AttributeEmitter.cs
- PreProcessInputEventArgs.cs
- SamlSubject.cs
- PriorityItem.cs
- TableRow.cs
- XmlSchemaAnyAttribute.cs
- SiteMembershipCondition.cs
- DbProviderConfigurationHandler.cs
- OuterGlowBitmapEffect.cs
- WindowsFormsHostAutomationPeer.cs
- Set.cs
- StoryFragments.cs
- XmlSchemaDocumentation.cs
- DomNameTable.cs
- ProjectionPathBuilder.cs
- DrawToolTipEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- CaseInsensitiveComparer.cs
- ContentPathSegment.cs
- ImpersonationContext.cs
- QilInvoke.cs
- MaskInputRejectedEventArgs.cs
- DataGridItemCollection.cs
- Keywords.cs
- OneToOneMappingSerializer.cs
- ListViewDeleteEventArgs.cs
- RepeatBehaviorConverter.cs