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
- CollectionsUtil.cs
- RewritingSimplifier.cs
- XomlSerializationHelpers.cs
- MetadataItemCollectionFactory.cs
- TypeLibraryHelper.cs
- RulePatternOps.cs
- DtrList.cs
- Image.cs
- HttpCachePolicyBase.cs
- SqlParameter.cs
- Utils.cs
- SupportingTokenDuplexChannel.cs
- BindingValueChangedEventArgs.cs
- IChannel.cs
- HashHelper.cs
- DataMemberConverter.cs
- FacetEnabledSchemaElement.cs
- CompressionTransform.cs
- XamlTreeBuilder.cs
- DependencyPropertyChangedEventArgs.cs
- List.cs
- SelectionWordBreaker.cs
- DPCustomTypeDescriptor.cs
- WebBrowserNavigatingEventHandler.cs
- Collection.cs
- VisualTreeFlattener.cs
- GridViewColumnHeaderAutomationPeer.cs
- ValueUtilsSmi.cs
- OdbcErrorCollection.cs
- DrawingCollection.cs
- TextComposition.cs
- CellIdBoolean.cs
- MsmqVerifier.cs
- Splitter.cs
- PerfCounters.cs
- ContainerVisual.cs
- TextMetrics.cs
- XDeferredAxisSource.cs
- ClientSettingsSection.cs
- DoWorkEventArgs.cs
- GenericUriParser.cs
- DataGridViewHeaderCell.cs
- DataControlButton.cs
- UpdateProgress.cs
- GeneralTransform.cs
- login.cs
- ActivityCodeDomSerializationManager.cs
- Path.cs
- FormatVersion.cs
- DrawListViewItemEventArgs.cs
- BitConverter.cs
- InvalidAsynchronousStateException.cs
- CodeComment.cs
- DesignTimeHTMLTextWriter.cs
- MimeBasePart.cs
- HashMembershipCondition.cs
- _OSSOCK.cs
- ThrowHelper.cs
- AssertSection.cs
- DataPagerCommandEventArgs.cs
- ReceiveReply.cs
- XNodeSchemaApplier.cs
- NetworkInformationException.cs
- ComponentGlyph.cs
- ColumnWidthChangingEvent.cs
- IntermediatePolicyValidator.cs
- StandardBindingElementCollection.cs
- AssertFilter.cs
- WmfPlaceableFileHeader.cs
- DeploymentExceptionMapper.cs
- WebEventTraceProvider.cs
- UnsafeNetInfoNativeMethods.cs
- followingsibling.cs
- XmlWellformedWriter.cs
- WebColorConverter.cs
- MenuItemBindingCollection.cs
- IndentedWriter.cs
- MexHttpBindingElement.cs
- HttpPostedFile.cs
- SafeReadContext.cs
- DataRelationCollection.cs
- AnnotationAdorner.cs
- EmptyControlCollection.cs
- SimpleType.cs
- CheckedPointers.cs
- CodeExpressionCollection.cs
- QueryContext.cs
- RadioButton.cs
- HttpProcessUtility.cs
- DbRetry.cs
- HttpRequest.cs
- UniformGrid.cs
- SystemTcpStatistics.cs
- GridPattern.cs
- RtfControlWordInfo.cs
- HttpConfigurationContext.cs
- StoragePropertyMapping.cs
- OrderedDictionary.cs
- View.cs
- TextDecorationCollection.cs