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
- ClientSideProviderDescription.cs
- IfJoinedCondition.cs
- XmlEventCache.cs
- XamlSerializerUtil.cs
- TextWriterTraceListener.cs
- ToolStripSeparatorRenderEventArgs.cs
- DataBoundControlHelper.cs
- LocalIdKeyIdentifierClause.cs
- DisableDpiAwarenessAttribute.cs
- FormView.cs
- LinqDataSourceDeleteEventArgs.cs
- RemoveStoryboard.cs
- SessionState.cs
- XmlSchemaInferenceException.cs
- AddInPipelineAttributes.cs
- StatusBarPanel.cs
- RouteItem.cs
- UIElementCollection.cs
- WebPartTracker.cs
- DesignerPerfEventProvider.cs
- ConfigXmlComment.cs
- PointCollection.cs
- EncryptedPackage.cs
- PagedDataSource.cs
- SamlConstants.cs
- PropertyGrid.cs
- ExcludePathInfo.cs
- SqlUtils.cs
- ElementAction.cs
- WebResponse.cs
- RowSpanVector.cs
- StylusPointProperties.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ApplicationManager.cs
- ImmComposition.cs
- XamlParser.cs
- WindowsTokenRoleProvider.cs
- ContainerUtilities.cs
- DataGridBeginningEditEventArgs.cs
- ConfigXmlCDataSection.cs
- NativeMethodsOther.cs
- X509AsymmetricSecurityKey.cs
- FixedPosition.cs
- LinkedList.cs
- LineServices.cs
- DbParameterCollectionHelper.cs
- DataControlField.cs
- sitestring.cs
- FileInfo.cs
- NavigationEventArgs.cs
- PieceNameHelper.cs
- Message.cs
- DocumentSequence.cs
- InternalRelationshipCollection.cs
- XmlSchemaSimpleContent.cs
- Bookmark.cs
- Package.cs
- XmlSerializationReader.cs
- FlowPosition.cs
- ComponentEditorPage.cs
- TreeIterators.cs
- SecurityBindingElement.cs
- TransformPatternIdentifiers.cs
- QueryInterceptorAttribute.cs
- IIS7UserPrincipal.cs
- MdiWindowListStrip.cs
- SqlDelegatedTransaction.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- RoleGroupCollectionEditor.cs
- AppDomain.cs
- BitmapPalette.cs
- SettingsProviderCollection.cs
- TextTreeUndoUnit.cs
- GridViewDeletedEventArgs.cs
- JpegBitmapEncoder.cs
- ListDictionary.cs
- ProfilePropertyNameValidator.cs
- ZipIOCentralDirectoryBlock.cs
- NullableConverter.cs
- SmtpCommands.cs
- Types.cs
- PriorityBinding.cs
- DataListComponentEditor.cs
- WebPartConnection.cs
- Function.cs
- AuthenticationModuleElement.cs
- EncryptedReference.cs
- XMLUtil.cs
- XmlAtomicValue.cs
- NullRuntimeConfig.cs
- Membership.cs
- OrderedEnumerableRowCollection.cs
- PointLightBase.cs
- StringFreezingAttribute.cs
- ObjectMemberMapping.cs
- LineBreakRecord.cs
- TheQuery.cs
- DBNull.cs
- SqlDataSourceSelectingEventArgs.cs
- XamlToRtfWriter.cs