Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ClientSession.cs
- Win32SafeHandles.cs
- WizardPanelChangingEventArgs.cs
- DiscriminatorMap.cs
- DetailsViewInsertEventArgs.cs
- OutputCacheModule.cs
- DataControlField.cs
- DataGridHyperlinkColumn.cs
- ReferenceTypeElement.cs
- UInt64Storage.cs
- util.cs
- SemanticBasicElement.cs
- ServerIdentity.cs
- FixUpCollection.cs
- DecoderBestFitFallback.cs
- XamlReaderHelper.cs
- Geometry.cs
- SafeHandle.cs
- BamlWriter.cs
- AmbientLight.cs
- DrawingState.cs
- AttributeEmitter.cs
- VariableAction.cs
- AnimationLayer.cs
- ModelVisual3D.cs
- XmlUTF8TextWriter.cs
- XmlToDatasetMap.cs
- ExtensionElement.cs
- BinaryMessageEncodingBindingElement.cs
- DataGridViewCellStyleChangedEventArgs.cs
- QueryExpr.cs
- VerticalAlignConverter.cs
- MediaContextNotificationWindow.cs
- WindowsAltTab.cs
- DbMetaDataCollectionNames.cs
- Thread.cs
- MaterialGroup.cs
- References.cs
- SaveFileDialog.cs
- XmlCharacterData.cs
- XamlToRtfParser.cs
- FigureHelper.cs
- TableCellCollection.cs
- Action.cs
- WebPartTransformer.cs
- ApplicationFileCodeDomTreeGenerator.cs
- QueryOperatorEnumerator.cs
- FormViewUpdateEventArgs.cs
- SoapIgnoreAttribute.cs
- DoubleUtil.cs
- ListViewItemSelectionChangedEvent.cs
- SchemaCollectionPreprocessor.cs
- DataServiceHost.cs
- SqlPersistenceProviderFactory.cs
- TypeReference.cs
- MenuCommands.cs
- ListViewItem.cs
- RegistryKey.cs
- Font.cs
- ItemMap.cs
- ToolStripDropDownButton.cs
- WebBrowserSiteBase.cs
- ColorConvertedBitmap.cs
- BitmapEffectGeneralTransform.cs
- AsymmetricAlgorithm.cs
- TextParaClient.cs
- ReachObjectContext.cs
- SecurityCriticalDataForSet.cs
- PnrpPermission.cs
- EmptyCollection.cs
- SizeKeyFrameCollection.cs
- BamlLocalizableResourceKey.cs
- ApplicationProxyInternal.cs
- BindableAttribute.cs
- XmlDocumentFieldSchema.cs
- PrinterResolution.cs
- HwndMouseInputProvider.cs
- StylusPlugin.cs
- RangeBase.cs
- ListParaClient.cs
- NetworkInterface.cs
- PerformanceCounterNameAttribute.cs
- DesignDataSource.cs
- WebPartDeleteVerb.cs
- CatalogPartCollection.cs
- ContentPropertyAttribute.cs
- PageCodeDomTreeGenerator.cs
- DropDownButton.cs
- SafeNativeMethods.cs
- DispatcherProcessingDisabled.cs
- SystemException.cs
- TextModifierScope.cs
- WebEventCodes.cs
- CodeParameterDeclarationExpressionCollection.cs
- MetafileHeaderEmf.cs
- AuthenticationService.cs
- PagesSection.cs
- KeyConstraint.cs
- RuntimeCompatibilityAttribute.cs
- GridSplitterAutomationPeer.cs