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
- SimpleLine.cs
- CheckBox.cs
- NetworkInterface.cs
- TraceData.cs
- Attributes.cs
- WebServiceReceive.cs
- Emitter.cs
- Size3D.cs
- CharAnimationBase.cs
- Fonts.cs
- StrokeDescriptor.cs
- SqlNodeTypeOperators.cs
- StateMachine.cs
- LinqDataSourceContextData.cs
- TextEditorLists.cs
- HtmlEmptyTagControlBuilder.cs
- HttpApplication.cs
- PropertyIdentifier.cs
- _ConnectStream.cs
- MediaElement.cs
- AlphaSortedEnumConverter.cs
- ControlCollection.cs
- mansign.cs
- JsonFormatGeneratorStatics.cs
- DoneReceivingAsyncResult.cs
- WindowsListViewSubItem.cs
- SynchronizationContext.cs
- PassportAuthenticationEventArgs.cs
- MarshalByValueComponent.cs
- PagerStyle.cs
- HttpModulesSection.cs
- ViewManager.cs
- DataTableReader.cs
- RawStylusInputReport.cs
- ComponentSerializationService.cs
- DerivedKeySecurityTokenStub.cs
- ComponentCommands.cs
- ContentDisposition.cs
- TypeFieldSchema.cs
- XmlSchemaFacet.cs
- DbParameterHelper.cs
- DataGridViewControlCollection.cs
- HttpCookie.cs
- DbProviderFactories.cs
- TypeToken.cs
- CharAnimationUsingKeyFrames.cs
- OdbcPermission.cs
- X509CertificateTrustedIssuerElementCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- TextSimpleMarkerProperties.cs
- FontWeights.cs
- MessageLoggingFilterTraceRecord.cs
- CfgArc.cs
- MarkupObject.cs
- Documentation.cs
- DataPagerField.cs
- CheckBoxField.cs
- SmtpTransport.cs
- IndependentlyAnimatedPropertyMetadata.cs
- XhtmlBasicTextBoxAdapter.cs
- LayoutManager.cs
- MobileControlsSection.cs
- DefaultProxySection.cs
- AssemblyAttributesGoHere.cs
- InteropBitmapSource.cs
- NumericExpr.cs
- Visual.cs
- ContainsSearchOperator.cs
- PerformanceCounterCategory.cs
- EntryIndex.cs
- DependencyPropertyKey.cs
- QuaternionValueSerializer.cs
- MenuItem.cs
- CustomErrorCollection.cs
- HwndKeyboardInputProvider.cs
- AmbientLight.cs
- CryptoApi.cs
- indexingfiltermarshaler.cs
- CreateUserErrorEventArgs.cs
- CodePageUtils.cs
- EntityProviderFactory.cs
- InlineCollection.cs
- ResourceReferenceExpressionConverter.cs
- NetworkStream.cs
- CurrencyManager.cs
- NetSectionGroup.cs
- XmlBindingWorker.cs
- GridSplitterAutomationPeer.cs
- FormsIdentity.cs
- TypeGeneratedEventArgs.cs
- BookmarkUndoUnit.cs
- ContainsRowNumberChecker.cs
- ContentPlaceHolder.cs
- RtfToken.cs
- SqlDataSourceEnumerator.cs
- FormatterServices.cs
- SqlDataAdapter.cs
- LineSegment.cs
- _SingleItemRequestCache.cs
- AppDomainFactory.cs