Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InitializationEventAttribute.cs
- XmlNamespaceDeclarationsAttribute.cs
- RadioButtonPopupAdapter.cs
- ActivityDelegate.cs
- DoubleLink.cs
- VisualStateManager.cs
- XmlSerializerSection.cs
- Collection.cs
- RandomNumberGenerator.cs
- DesignerPerfEventProvider.cs
- LifetimeServices.cs
- TimeoutValidationAttribute.cs
- PropertyRecord.cs
- AnimationException.cs
- KeyMatchBuilder.cs
- Shape.cs
- FrameAutomationPeer.cs
- ParseNumbers.cs
- TypeName.cs
- TraceSection.cs
- MachineKeyConverter.cs
- WebBaseEventKeyComparer.cs
- XmlWhitespace.cs
- InkCanvasSelectionAdorner.cs
- TdsParser.cs
- DoubleLinkListEnumerator.cs
- LogRestartAreaEnumerator.cs
- ByteStorage.cs
- Geometry.cs
- PointHitTestResult.cs
- CompilerState.cs
- Table.cs
- TabPage.cs
- Message.cs
- TableSectionStyle.cs
- SettingsBindableAttribute.cs
- ClientConfigurationSystem.cs
- Cursor.cs
- XMLSyntaxException.cs
- PolicyStatement.cs
- ScrollChrome.cs
- XmlQualifiedName.cs
- TextServicesContext.cs
- MultiByteCodec.cs
- XmlSchemaComplexContentRestriction.cs
- ImageKeyConverter.cs
- ForeignKeyConstraint.cs
- Errors.cs
- ConfigurationProviderException.cs
- ImpersonationContext.cs
- ChannelManager.cs
- Span.cs
- CookieParameter.cs
- ToolStripDropDownItem.cs
- FacetValues.cs
- WorkflowApplicationAbortedException.cs
- DataGridViewLinkColumn.cs
- HierarchicalDataBoundControl.cs
- TraceUtility.cs
- ThreadNeutralSemaphore.cs
- PagedDataSource.cs
- NativeMethodsOther.cs
- PathGradientBrush.cs
- SmiRecordBuffer.cs
- ScriptManagerProxy.cs
- CollectionViewSource.cs
- StdValidatorsAndConverters.cs
- KeyConverter.cs
- OuterGlowBitmapEffect.cs
- ArrayElementGridEntry.cs
- Timer.cs
- SyntaxCheck.cs
- login.cs
- MembershipValidatePasswordEventArgs.cs
- RegisteredScript.cs
- CurrentTimeZone.cs
- SQLGuid.cs
- HiddenField.cs
- ViewLoader.cs
- Message.cs
- VirtualDirectoryMapping.cs
- HtmlString.cs
- TabItem.cs
- ScrollViewerAutomationPeer.cs
- Menu.cs
- DrawListViewSubItemEventArgs.cs
- FixedSOMGroup.cs
- HtmlElementEventArgs.cs
- ProbeDuplexCD1AsyncResult.cs
- ToolStripPanelSelectionGlyph.cs
- VectorKeyFrameCollection.cs
- ToolStripDropDownClosedEventArgs.cs
- CharacterBufferReference.cs
- DetailsViewCommandEventArgs.cs
- UnsafeNativeMethods.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DeclaredTypeElementCollection.cs
- SystemWebExtensionsSectionGroup.cs
- SQLInt64Storage.cs
- Fault.cs