Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DiscoveryClientDuplexChannel.cs
- VisemeEventArgs.cs
- DataTableCollection.cs
- DecoratedNameAttribute.cs
- SHA1.cs
- PersonalizableTypeEntry.cs
- GenericTextProperties.cs
- MonitorWrapper.cs
- XmlSchemaSubstitutionGroup.cs
- DataGridViewLayoutData.cs
- TransformGroup.cs
- DataGridViewColumnDesigner.cs
- PathSegmentCollection.cs
- BitVector32.cs
- SplitterPanel.cs
- UDPClient.cs
- EntityProviderFactory.cs
- DES.cs
- StubHelpers.cs
- PerfCounterSection.cs
- SourceInterpreter.cs
- TemplateParser.cs
- BindingList.cs
- x509utils.cs
- SqlDependencyUtils.cs
- DocumentViewerAutomationPeer.cs
- CellPartitioner.cs
- MemoryPressure.cs
- UIntPtr.cs
- Msec.cs
- FrameworkContentElement.cs
- Drawing.cs
- UpdatePanelControlTrigger.cs
- CipherData.cs
- ReferenceConverter.cs
- FragmentQueryKB.cs
- ApplicationSettingsBase.cs
- KoreanLunisolarCalendar.cs
- Int64Animation.cs
- DataRecordObjectView.cs
- AppSettingsSection.cs
- ColorConverter.cs
- Membership.cs
- ImageIndexEditor.cs
- DataPagerCommandEventArgs.cs
- TreeViewBindingsEditorForm.cs
- AudioStateChangedEventArgs.cs
- CodeStatementCollection.cs
- KeyFrames.cs
- ContentWrapperAttribute.cs
- DataGridViewRow.cs
- EntityCommandCompilationException.cs
- OperandQuery.cs
- XmlPreloadedResolver.cs
- ConstructorBuilder.cs
- BindingManagerDataErrorEventArgs.cs
- SrgsElement.cs
- PriorityChain.cs
- XmlAttributeOverrides.cs
- ImageList.cs
- TextEditorSpelling.cs
- TextSelectionHighlightLayer.cs
- DocumentViewerHelper.cs
- ReliableOutputConnection.cs
- RequestQueue.cs
- SrgsElementFactory.cs
- NumericPagerField.cs
- PerformanceCounterManager.cs
- WebPartMovingEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- MediaPlayer.cs
- Inflater.cs
- ServiceObjectContainer.cs
- XmlDocumentFieldSchema.cs
- InitializingNewItemEventArgs.cs
- SourceFilter.cs
- OperatingSystemVersionCheck.cs
- CachedFontFace.cs
- TextEditorThreadLocalStore.cs
- QuaternionAnimation.cs
- DynamicRendererThreadManager.cs
- BindingList.cs
- Vertex.cs
- StoryFragments.cs
- SoapRpcMethodAttribute.cs
- FixedSOMPageConstructor.cs
- ActivityExecutorOperation.cs
- ProtocolsConfiguration.cs
- TextDpi.cs
- CombinedGeometry.cs
- TraceSection.cs
- GeometryDrawing.cs
- SystemIPGlobalStatistics.cs
- Label.cs
- ConnectionsZoneAutoFormat.cs
- ViewStateModeByIdAttribute.cs
- GetMemberBinder.cs
- ListViewItemMouseHoverEvent.cs
- securitymgrsite.cs
- CellPartitioner.cs