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
- GridSplitterAutomationPeer.cs
- QueryContinueDragEvent.cs
- InputMethodStateTypeInfo.cs
- AbandonedMutexException.cs
- SchemaTypeEmitter.cs
- SoapElementAttribute.cs
- ConfigurationStrings.cs
- HighlightComponent.cs
- RewritingPass.cs
- X509IssuerSerialKeyIdentifierClause.cs
- DataTransferEventArgs.cs
- ClientConfigurationSystem.cs
- ZoneButton.cs
- ShaperBuffers.cs
- ListenDesigner.cs
- DataGridViewTextBoxColumn.cs
- ClientConfigurationSystem.cs
- CodeLabeledStatement.cs
- IPHostEntry.cs
- IntSecurity.cs
- AssemblySettingAttributes.cs
- RangeExpression.cs
- XmlAtomicValue.cs
- PageThemeParser.cs
- WindowsEditBox.cs
- TimeBoundedCache.cs
- Color.cs
- OrderedDictionaryStateHelper.cs
- AvtEvent.cs
- StoryFragments.cs
- BulletedListDesigner.cs
- MdiWindowListStrip.cs
- ComboBoxRenderer.cs
- BitmapEncoder.cs
- xmlfixedPageInfo.cs
- XamlTreeBuilderBamlRecordWriter.cs
- GenerateScriptTypeAttribute.cs
- listitem.cs
- DictionaryChange.cs
- FaultCallbackWrapper.cs
- SqlClientFactory.cs
- BitmapEffectGroup.cs
- ObjectSecurity.cs
- WebReferencesBuildProvider.cs
- OleDbException.cs
- _ServiceNameStore.cs
- EDesignUtil.cs
- WindowsGraphics.cs
- DoubleKeyFrameCollection.cs
- LookupBindingPropertiesAttribute.cs
- WebInvokeAttribute.cs
- SessionStateUtil.cs
- ImageBrush.cs
- RepeatInfo.cs
- SystemInfo.cs
- DefaultBindingPropertyAttribute.cs
- AspCompat.cs
- DbConnectionFactory.cs
- PlainXmlWriter.cs
- XmlEnumAttribute.cs
- VirtualPath.cs
- DataFormats.cs
- VisualStyleRenderer.cs
- NativeMethods.cs
- SchemaAttDef.cs
- FastEncoderWindow.cs
- WebPartEditVerb.cs
- TextFormatterImp.cs
- XmlQueryRuntime.cs
- Logging.cs
- WorkflowQueue.cs
- MetadataCache.cs
- BamlTreeMap.cs
- wpf-etw.cs
- TextFormatter.cs
- DependencyPropertyValueSerializer.cs
- GroupByQueryOperator.cs
- serverconfig.cs
- TextElementCollection.cs
- PrePostDescendentsWalker.cs
- ClientSettingsProvider.cs
- AssemblySettingAttributes.cs
- HandleExceptionArgs.cs
- RegistryHandle.cs
- Thumb.cs
- Label.cs
- BuildProviderCollection.cs
- UndoManager.cs
- XmlSchemaImporter.cs
- NativeMethods.cs
- FunctionNode.cs
- ProjectionCamera.cs
- NullableConverter.cs
- VisualTarget.cs
- SectionVisual.cs
- BaseParaClient.cs
- PageVisual.cs
- ExceptionHandlers.cs
- Substitution.cs
- WebBaseEventKeyComparer.cs