Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- IList.cs
- ScrollableControl.cs
- SingleConverter.cs
- XamlPointCollectionSerializer.cs
- MulticastNotSupportedException.cs
- PageRanges.cs
- PathFigure.cs
- DescendentsWalkerBase.cs
- WebPartManager.cs
- HwndAppCommandInputProvider.cs
- DateTime.cs
- XmlArrayItemAttribute.cs
- Double.cs
- EventLogReader.cs
- Itemizer.cs
- DataGridViewCellStyleConverter.cs
- VisualBrush.cs
- Interlocked.cs
- XpsFilter.cs
- SingleConverter.cs
- StrokeSerializer.cs
- PropertyChangeTracker.cs
- XmlQueryStaticData.cs
- TreeNodeEventArgs.cs
- ProxyHelper.cs
- ZipIOLocalFileDataDescriptor.cs
- StoreItemCollection.Loader.cs
- TemplatedControlDesigner.cs
- RowBinding.cs
- IISMapPath.cs
- WindowsListViewItemCheckBox.cs
- OracleNumber.cs
- ConnectionStringsExpressionEditor.cs
- ListControl.cs
- ExpressionNormalizer.cs
- MimeFormatExtensions.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- HiddenFieldPageStatePersister.cs
- HttpRuntime.cs
- COM2IProvidePropertyBuilderHandler.cs
- ValueQuery.cs
- LambdaValue.cs
- WebRequestModuleElementCollection.cs
- PerfService.cs
- Vector.cs
- TemplatedEditableDesignerRegion.cs
- StreamResourceInfo.cs
- LazyTextWriterCreator.cs
- UshortList2.cs
- EmbeddedMailObject.cs
- TdsParserStateObject.cs
- RenderDataDrawingContext.cs
- BinaryObjectReader.cs
- _TimerThread.cs
- XmlCharCheckingReader.cs
- CallbackHandler.cs
- MarginCollapsingState.cs
- IInstanceContextProvider.cs
- Hex.cs
- MergeLocalizationDirectives.cs
- ClientSettingsProvider.cs
- CodeGroup.cs
- SqlBuilder.cs
- SkipQueryOptionExpression.cs
- CustomError.cs
- CanonicalFontFamilyReference.cs
- BrushValueSerializer.cs
- StoreItemCollection.Loader.cs
- BamlCollectionHolder.cs
- MouseGestureConverter.cs
- StoreItemCollection.cs
- HtmlWindowCollection.cs
- RemoteArgument.cs
- LoaderAllocator.cs
- ScalarRestriction.cs
- Compiler.cs
- AsyncContentLoadedEventArgs.cs
- FileNotFoundException.cs
- ListenerElementsCollection.cs
- EventHandlers.cs
- CrossAppDomainChannel.cs
- UTF7Encoding.cs
- WindowsTokenRoleProvider.cs
- Brush.cs
- Compensate.cs
- DispatcherFrame.cs
- FormattedTextSymbols.cs
- StickyNote.cs
- StringExpressionSet.cs
- ResourceContainer.cs
- TraceSection.cs
- GlobalAllocSafeHandle.cs
- Pair.cs
- FixUp.cs
- BitmapCodecInfo.cs
- DeviceContext.cs
- EpmSourcePathSegment.cs
- MethodExpression.cs
- XPathNavigator.cs
- WebPartCancelEventArgs.cs