Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SettingsBase.cs
- XhtmlBasicSelectionListAdapter.cs
- ImageMap.cs
- HMACSHA384.cs
- DataColumnMapping.cs
- CompilationUnit.cs
- DriveNotFoundException.cs
- SoapAttributes.cs
- InvalidProgramException.cs
- GregorianCalendarHelper.cs
- ContentPosition.cs
- Keyboard.cs
- GetPageNumberCompletedEventArgs.cs
- InstanceDescriptor.cs
- VolatileEnlistmentMultiplexing.cs
- TemplateBindingExpressionConverter.cs
- ConsoleKeyInfo.cs
- MultiBinding.cs
- CryptoKeySecurity.cs
- Int64Converter.cs
- RegistrySecurity.cs
- TextSelectionHelper.cs
- ButtonChrome.cs
- GeometryCombineModeValidation.cs
- WindowsPen.cs
- CaseInsensitiveComparer.cs
- ConsoleKeyInfo.cs
- ListenerUnsafeNativeMethods.cs
- DBSchemaTable.cs
- FileVersionInfo.cs
- DbConnectionStringCommon.cs
- TabletDevice.cs
- BitmapEffect.cs
- NativeMethods.cs
- LinkedList.cs
- SystemIPAddressInformation.cs
- CreationContext.cs
- SoapProtocolReflector.cs
- HttpCachePolicyElement.cs
- ItemMap.cs
- SqlAggregateChecker.cs
- LicFileLicenseProvider.cs
- SmtpSection.cs
- ZipIOBlockManager.cs
- DocumentViewerConstants.cs
- ResourceProviderFactory.cs
- ErasingStroke.cs
- InheritedPropertyChangedEventArgs.cs
- OperatingSystem.cs
- DrawingBrush.cs
- AdCreatedEventArgs.cs
- ProcessModelSection.cs
- TabPanel.cs
- SecureConversationDriver.cs
- SchemaImporter.cs
- DeflateInput.cs
- SocketAddress.cs
- XmlSchemaException.cs
- XmlArrayItemAttribute.cs
- SafeBuffer.cs
- pingexception.cs
- Setter.cs
- SequentialUshortCollection.cs
- EdmError.cs
- XmlQualifiedName.cs
- HostingPreferredMapPath.cs
- ObjectDataSourceView.cs
- TraceData.cs
- BroadcastEventHelper.cs
- EncryptedXml.cs
- ConfigsHelper.cs
- DbModificationClause.cs
- OleDbMetaDataFactory.cs
- MetabaseReader.cs
- SystemDiagnosticsSection.cs
- GlobalizationSection.cs
- RubberbandSelector.cs
- PersonalizationProviderHelper.cs
- CommandLibraryHelper.cs
- TypeReference.cs
- TemplateBindingExpression.cs
- EventDescriptor.cs
- DiagnosticsConfiguration.cs
- ActivityCodeDomSerializer.cs
- ScrollableControl.cs
- WebPageTraceListener.cs
- XslException.cs
- RewritingValidator.cs
- QueryAsyncResult.cs
- MimeTypePropertyAttribute.cs
- ResourcePool.cs
- UserControlCodeDomTreeGenerator.cs
- CopyNodeSetAction.cs
- StrokeNodeOperations.cs
- CounterSample.cs
- XmlILIndex.cs
- coordinatorscratchpad.cs
- XamlVector3DCollectionSerializer.cs
- AttachedAnnotationChangedEventArgs.cs
- ListViewItem.cs