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
- FilteredDataSetHelper.cs
- ConfigurationValidatorBase.cs
- TextHidden.cs
- TypeElement.cs
- NamedPipeAppDomainProtocolHandler.cs
- WorkflowOperationBehavior.cs
- OpacityConverter.cs
- SByteConverter.cs
- EditorAttribute.cs
- SqlUserDefinedAggregateAttribute.cs
- TabPanel.cs
- StringConcat.cs
- TreeNodeStyleCollection.cs
- RepeaterCommandEventArgs.cs
- DataGridViewToolTip.cs
- SoapEnvelopeProcessingElement.cs
- _emptywebproxy.cs
- ObjectListCommandCollection.cs
- KeysConverter.cs
- DirectoryInfo.cs
- RedirectionProxy.cs
- Point3DAnimationBase.cs
- DataGridViewDataErrorEventArgs.cs
- TableChangeProcessor.cs
- CodeAttributeArgumentCollection.cs
- ImageCodecInfo.cs
- VisualTreeUtils.cs
- EmptyReadOnlyDictionaryInternal.cs
- NotFiniteNumberException.cs
- Queue.cs
- Inline.cs
- ComponentResourceKeyConverter.cs
- DifferencingCollection.cs
- XmlElement.cs
- SemanticResultValue.cs
- PostBackTrigger.cs
- XmlNodeChangedEventArgs.cs
- ScrollableControl.cs
- TypedAsyncResult.cs
- XmlLoader.cs
- BigInt.cs
- UInt32Converter.cs
- RightsManagementPermission.cs
- itemelement.cs
- GCHandleCookieTable.cs
- IteratorFilter.cs
- WebChannelFactory.cs
- ByteFacetDescriptionElement.cs
- XpsPackagingPolicy.cs
- AssemblyBuilderData.cs
- SessionStateItemCollection.cs
- CompositeKey.cs
- WhitespaceRuleLookup.cs
- WindowsRichEditRange.cs
- Block.cs
- RegexWriter.cs
- ConfigurationPropertyAttribute.cs
- HTTPAPI_VERSION.cs
- JsonQueryStringConverter.cs
- SettingsAttributeDictionary.cs
- DataGridViewTextBoxEditingControl.cs
- DefaultEventAttribute.cs
- EllipseGeometry.cs
- TextSyndicationContentKindHelper.cs
- CodeDomSerializationProvider.cs
- EntitySqlQueryCacheKey.cs
- PolicyChain.cs
- ContainerVisual.cs
- CreateUserErrorEventArgs.cs
- StateWorkerRequest.cs
- BrowserDefinition.cs
- Region.cs
- CodeAttributeDeclaration.cs
- GridView.cs
- WebServiceErrorEvent.cs
- HttpPostedFile.cs
- KeyNotFoundException.cs
- TypeExtension.cs
- ComboBoxAutomationPeer.cs
- ParenExpr.cs
- PolicyDesigner.cs
- ServiceEndpointCollection.cs
- MasterPageBuildProvider.cs
- CompositionAdorner.cs
- PropertyItemInternal.cs
- DataGridViewAdvancedBorderStyle.cs
- Geometry.cs
- DrawingVisual.cs
- ChangesetResponse.cs
- OleDragDropHandler.cs
- MessageSmuggler.cs
- DbConnectionStringBuilder.cs
- RuntimeIdentifierPropertyAttribute.cs
- cryptoapiTransform.cs
- ipaddressinformationcollection.cs
- ElementHostAutomationPeer.cs
- ArrayHelper.cs
- VirtualPath.cs
- RoutingUtilities.cs
- ContactManager.cs