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
- RectKeyFrameCollection.cs
- TypeCacheManager.cs
- ApplicationFileParser.cs
- SecurityPolicySection.cs
- MatrixConverter.cs
- WebMessageEncodingBindingElement.cs
- Button.cs
- ResourceProviderFactory.cs
- ListViewInsertionMark.cs
- GenericRootAutomationPeer.cs
- Avt.cs
- DrawListViewItemEventArgs.cs
- EtwTrackingBehaviorElement.cs
- DbConnectionPoolGroupProviderInfo.cs
- PenContext.cs
- ConnectAlgorithms.cs
- MouseGesture.cs
- TextEvent.cs
- DateTimeConverter.cs
- DoubleCollectionValueSerializer.cs
- AssemblyEvidenceFactory.cs
- sqlmetadatafactory.cs
- NavigationWindowAutomationPeer.cs
- EventProviderClassic.cs
- XPathParser.cs
- XmlArrayItemAttributes.cs
- cookieexception.cs
- FillErrorEventArgs.cs
- LockCookie.cs
- NullableConverter.cs
- ImageMetadata.cs
- HorizontalAlignConverter.cs
- Trace.cs
- ContentDesigner.cs
- ResourceCollectionInfo.cs
- PersonalizablePropertyEntry.cs
- ProcessMessagesAsyncResult.cs
- CssTextWriter.cs
- ImageListStreamer.cs
- ComponentResourceKeyConverter.cs
- _NegotiateClient.cs
- WebHttpBinding.cs
- GlobalProxySelection.cs
- PartialTrustHelpers.cs
- unsafenativemethodsother.cs
- BrushValueSerializer.cs
- PolicyVersion.cs
- SectionUpdates.cs
- ValidatorCollection.cs
- SerializerDescriptor.cs
- TableLayout.cs
- PreloadHost.cs
- EndpointInfoCollection.cs
- RawStylusSystemGestureInputReport.cs
- XmlSchemaObject.cs
- XmlQueryRuntime.cs
- DoubleAnimation.cs
- Int64.cs
- ViewGenerator.cs
- UnmanagedHandle.cs
- SqlFormatter.cs
- PackagePartCollection.cs
- TextViewBase.cs
- NamedObject.cs
- _NtlmClient.cs
- HtmlTextArea.cs
- SystemTcpConnection.cs
- EventLogPermissionAttribute.cs
- ZeroOpNode.cs
- HiddenFieldPageStatePersister.cs
- ComboBox.cs
- _NativeSSPI.cs
- CurrencyManager.cs
- StringKeyFrameCollection.cs
- CheckBox.cs
- FileSecurity.cs
- PersonalizationAdministration.cs
- milexports.cs
- DataTrigger.cs
- XmlNullResolver.cs
- Select.cs
- _Events.cs
- NamespaceList.cs
- TransactionFlowElement.cs
- SingleKeyFrameCollection.cs
- CustomTrackingQuery.cs
- XPathDescendantIterator.cs
- EmissiveMaterial.cs
- XNodeSchemaApplier.cs
- CacheRequest.cs
- DictionaryTraceRecord.cs
- FullTextLine.cs
- FormsAuthenticationTicket.cs
- Rijndael.cs
- KeyConstraint.cs
- StyleTypedPropertyAttribute.cs
- PropertyConverter.cs
- VerificationAttribute.cs
- XmlSchemaDocumentation.cs
- WorkflowMarkupSerializer.cs