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
- FixedSOMSemanticBox.cs
- TransformDescriptor.cs
- BrowserCapabilitiesCodeGenerator.cs
- UserValidatedEventArgs.cs
- TextTreeNode.cs
- TextBoxView.cs
- DbConnectionPoolOptions.cs
- NullPackagingPolicy.cs
- MouseActionConverter.cs
- ListDictionary.cs
- _BufferOffsetSize.cs
- ServiceDeploymentInfo.cs
- InplaceBitmapMetadataWriter.cs
- ExecutionContext.cs
- ScriptRegistrationManager.cs
- StatusBarAutomationPeer.cs
- DataGridViewCellEventArgs.cs
- ImmComposition.cs
- IdentitySection.cs
- OperationResponse.cs
- ScrollChrome.cs
- LinkedResource.cs
- TraceHwndHost.cs
- XamlSerializer.cs
- MLangCodePageEncoding.cs
- EntityDescriptor.cs
- FindCompletedEventArgs.cs
- Walker.cs
- XmlHierarchicalEnumerable.cs
- ApplicationBuildProvider.cs
- TextDpi.cs
- ObjectReferenceStack.cs
- _HeaderInfoTable.cs
- AlignmentXValidation.cs
- BinaryCommonClasses.cs
- Cursor.cs
- XmlSignificantWhitespace.cs
- ColumnWidthChangedEvent.cs
- RegexCaptureCollection.cs
- Base64Encoding.cs
- TransformGroup.cs
- Crypto.cs
- ConfigXmlComment.cs
- PagePropertiesChangingEventArgs.cs
- LogReserveAndAppendState.cs
- CommunicationException.cs
- util.cs
- Transform3DCollection.cs
- IncomingWebResponseContext.cs
- BaseTypeViewSchema.cs
- AnnotationResourceChangedEventArgs.cs
- DataTableClearEvent.cs
- DynamicRenderer.cs
- StyleCollection.cs
- SecurityHelper.cs
- NullableDecimalMinMaxAggregationOperator.cs
- CompositionAdorner.cs
- CodeCommentStatementCollection.cs
- TextWriterTraceListener.cs
- ViewgenGatekeeper.cs
- DataGridViewImageColumn.cs
- XmlWrappingWriter.cs
- WebSysDefaultValueAttribute.cs
- CharUnicodeInfo.cs
- ListenerConfig.cs
- PrintDialogException.cs
- BinaryQueryOperator.cs
- MemberAssignmentAnalysis.cs
- DialogResultConverter.cs
- LicenseProviderAttribute.cs
- ChineseLunisolarCalendar.cs
- AtomPub10ServiceDocumentFormatter.cs
- DoubleStorage.cs
- ListDictionaryInternal.cs
- Util.cs
- DataBoundControlAdapter.cs
- ParseChildrenAsPropertiesAttribute.cs
- PageCatalogPart.cs
- GuidConverter.cs
- ConditionBrowserDialog.cs
- SqlConnectionPoolProviderInfo.cs
- ConfigurationStrings.cs
- FileStream.cs
- ClickablePoint.cs
- SqlBulkCopy.cs
- ServicePointManagerElement.cs
- ResourceDisplayNameAttribute.cs
- NotConverter.cs
- LinearGradientBrush.cs
- PreservationFileReader.cs
- TextContainerChangedEventArgs.cs
- PrimitiveXmlSerializers.cs
- OperatingSystem.cs
- AlignmentXValidation.cs
- ListBindableAttribute.cs
- XmlAttributeOverrides.cs
- QilTargetType.cs
- Pts.cs
- DrawingContextWalker.cs
- InlineCollection.cs