Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewRowEventArgs.cs
- IncomingWebRequestContext.cs
- AsnEncodedData.cs
- MissingFieldException.cs
- ToolStripItemRenderEventArgs.cs
- CatalogPartCollection.cs
- CompilerState.cs
- HostProtectionPermission.cs
- KeyedCollection.cs
- ReverseQueryOperator.cs
- AnimationStorage.cs
- WindowsTreeView.cs
- XmlSchemaSimpleContentExtension.cs
- NativeMethods.cs
- Matrix3D.cs
- ToolStripManager.cs
- Profiler.cs
- ResXResourceSet.cs
- FragmentNavigationEventArgs.cs
- DataGridViewRowConverter.cs
- _HeaderInfo.cs
- DefaultValueAttribute.cs
- IconBitmapDecoder.cs
- XmlUtf8RawTextWriter.cs
- SiteMapPath.cs
- Dispatcher.cs
- ArrayMergeHelper.cs
- Variant.cs
- GridViewUpdateEventArgs.cs
- PropertyEntry.cs
- FixedTextContainer.cs
- Normalization.cs
- ArgumentReference.cs
- Rect3D.cs
- ColumnMapCopier.cs
- TextWriter.cs
- PropertyChangedEventArgs.cs
- QuaternionAnimationBase.cs
- StatusBarAutomationPeer.cs
- ServiceModelPerformanceCounters.cs
- TypeReference.cs
- DifferencingCollection.cs
- DynamicResourceExtensionConverter.cs
- RegisteredExpandoAttribute.cs
- ListViewAutomationPeer.cs
- TypeLibConverter.cs
- OdbcEnvironmentHandle.cs
- DesignerCategoryAttribute.cs
- mediaclock.cs
- ResourceReferenceKeyNotFoundException.cs
- ReachDocumentReferenceSerializerAsync.cs
- UseManagedPresentationBindingElementImporter.cs
- DesignerCategoryAttribute.cs
- SessionStateItemCollection.cs
- WindowsButton.cs
- AccessKeyManager.cs
- ContourSegment.cs
- TabControl.cs
- XmlWellformedWriter.cs
- AxParameterData.cs
- CssStyleCollection.cs
- SafeThreadHandle.cs
- ByteRangeDownloader.cs
- EasingQuaternionKeyFrame.cs
- _BufferOffsetSize.cs
- WorkflowLayouts.cs
- DecimalConverter.cs
- StrokeCollectionConverter.cs
- HttpResponseWrapper.cs
- Cursors.cs
- SafeIUnknown.cs
- InternalConfigRoot.cs
- ResXResourceReader.cs
- EventProxy.cs
- XmlUrlResolver.cs
- CatalogZoneBase.cs
- Formatter.cs
- ItemType.cs
- AbsoluteQuery.cs
- OperandQuery.cs
- Version.cs
- XPathDocumentBuilder.cs
- PropertyFilter.cs
- XmlAttributeOverrides.cs
- FontInfo.cs
- FontFamilyValueSerializer.cs
- NullableFloatAverageAggregationOperator.cs
- ContentWrapperAttribute.cs
- InputDevice.cs
- TextFormatterImp.cs
- CompilationPass2Task.cs
- EntitySet.cs
- DecoderExceptionFallback.cs
- SchemaTableOptionalColumn.cs
- ITreeGenerator.cs
- ClientConvert.cs
- SiteMapHierarchicalDataSourceView.cs
- SettingsSavedEventArgs.cs
- CompiledRegexRunner.cs
- FormViewPageEventArgs.cs