Code:
/ DotNET / DotNET / 8.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
- RadioButton.cs
- DynamicActivity.cs
- IconEditor.cs
- SqlFactory.cs
- WorkflowTraceTransfer.cs
- QuaternionAnimation.cs
- Utils.cs
- CacheModeValueSerializer.cs
- SpotLight.cs
- ICspAsymmetricAlgorithm.cs
- DynamicFilter.cs
- LinearQuaternionKeyFrame.cs
- FreezableDefaultValueFactory.cs
- CheckBoxStandardAdapter.cs
- LayoutEditorPart.cs
- PreviewControlDesigner.cs
- ReaderContextStackData.cs
- XhtmlBasicValidatorAdapter.cs
- DecimalAnimation.cs
- XmlSchemaType.cs
- Bits.cs
- Int16.cs
- PlainXmlSerializer.cs
- EventWaitHandleSecurity.cs
- MemberRelationshipService.cs
- DragCompletedEventArgs.cs
- ListItemsPage.cs
- UserUseLicenseDictionaryLoader.cs
- DispatcherHookEventArgs.cs
- DecimalKeyFrameCollection.cs
- ListenerSessionConnection.cs
- UrlMapping.cs
- CapabilitiesPattern.cs
- TypeSource.cs
- CodeStatementCollection.cs
- MetadataPropertyAttribute.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- TextShapeableCharacters.cs
- InstanceCollisionException.cs
- DataSourceGeneratorException.cs
- InfiniteIntConverter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ThaiBuddhistCalendar.cs
- StrongNameUtility.cs
- MtomMessageEncoder.cs
- DbException.cs
- FigureHelper.cs
- TabControlAutomationPeer.cs
- DependencyPropertyDescriptor.cs
- FixedNode.cs
- GridViewAutomationPeer.cs
- KernelTypeValidation.cs
- BinaryWriter.cs
- TypographyProperties.cs
- ChangeNode.cs
- InternalConfigEventArgs.cs
- SerializationObjectManager.cs
- WindowPatternIdentifiers.cs
- AppManager.cs
- hwndwrapper.cs
- SafeSerializationManager.cs
- PhysicalAddress.cs
- RangeValueProviderWrapper.cs
- SerializationStore.cs
- WorkflowCreationContext.cs
- XPathEmptyIterator.cs
- SafeFileHandle.cs
- XmlAttributeHolder.cs
- CompilerWrapper.cs
- IntSecurity.cs
- StoragePropertyMapping.cs
- AssociationTypeEmitter.cs
- SystemColorTracker.cs
- HMACSHA1.cs
- OpenTypeLayoutCache.cs
- TextTreeInsertElementUndoUnit.cs
- FixedSOMElement.cs
- GenericTextProperties.cs
- CalendarDay.cs
- ObjectManager.cs
- FixedPageAutomationPeer.cs
- MinimizableAttributeTypeConverter.cs
- WebPartEventArgs.cs
- ExceptionUtil.cs
- WsdlBuildProvider.cs
- GeometryHitTestResult.cs
- PointF.cs
- MessageQueueKey.cs
- SettingsPropertyCollection.cs
- RuntimeUtils.cs
- GenericIdentity.cs
- ScrollItemProviderWrapper.cs
- QilCloneVisitor.cs
- ArcSegment.cs
- TouchesOverProperty.cs
- InputLanguageProfileNotifySink.cs
- CodeDelegateCreateExpression.cs
- DotAtomReader.cs
- UnaryNode.cs
- WorkflowRuntimeElement.cs