Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XPathNavigatorException.cs
- QueryReaderSettings.cs
- StaticTextPointer.cs
- DSACryptoServiceProvider.cs
- ListBoxItemAutomationPeer.cs
- GridViewEditEventArgs.cs
- RequestCacheEntry.cs
- StandardCommands.cs
- NotifyIcon.cs
- ToolStripEditorManager.cs
- StringSorter.cs
- DuplexChannelBinder.cs
- NgenServicingAttributes.cs
- CachedBitmap.cs
- DefaultSerializationProviderAttribute.cs
- _ProxyChain.cs
- TemplateControlParser.cs
- ControlValuePropertyAttribute.cs
- ToolStripSeparator.cs
- FocusChangedEventArgs.cs
- CheckBoxList.cs
- XslException.cs
- DecimalConverter.cs
- AnonymousIdentificationSection.cs
- XmlAttributeAttribute.cs
- SoapSchemaExporter.cs
- Column.cs
- XPathBinder.cs
- SurrogateSelector.cs
- InternalMappingException.cs
- BinHexEncoder.cs
- SafeHGlobalHandleCritical.cs
- Base64Encoder.cs
- Monitor.cs
- MarshalDirectiveException.cs
- GridViewDeletedEventArgs.cs
- XmlBinaryWriterSession.cs
- XmlEntity.cs
- DateTimeOffset.cs
- Underline.cs
- ExceptionHandlerDesigner.cs
- ConfigurationManagerInternalFactory.cs
- WebDisplayNameAttribute.cs
- MouseGestureValueSerializer.cs
- LogicalCallContext.cs
- HostExecutionContextManager.cs
- DBAsyncResult.cs
- OutOfProcStateClientManager.cs
- EntityDescriptor.cs
- ButtonChrome.cs
- HashRepartitionStream.cs
- ThumbAutomationPeer.cs
- XmlDocumentType.cs
- AttachInfo.cs
- SecurityCriticalDataForSet.cs
- InvalidPropValue.cs
- SafeNativeMethodsMilCoreApi.cs
- SqlProviderServices.cs
- TemplateModeChangedEventArgs.cs
- MessageSmuggler.cs
- DocComment.cs
- FontUnit.cs
- RuntimeVariableList.cs
- DataGridCommandEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- FlowNode.cs
- ArgumentDesigner.xaml.cs
- PriorityBindingExpression.cs
- File.cs
- DurableInstance.cs
- ApplicationTrust.cs
- ScriptIgnoreAttribute.cs
- BindingOperations.cs
- TextEditorSelection.cs
- PeerCollaborationPermission.cs
- CodeCatchClauseCollection.cs
- Matrix3DValueSerializer.cs
- SelectionManager.cs
- ClosureBinding.cs
- ValueQuery.cs
- DisposableCollectionWrapper.cs
- BinaryKeyIdentifierClause.cs
- WebHeaderCollection.cs
- ValidationHelper.cs
- BodyWriter.cs
- DataGridViewCellCollection.cs
- FunctionParameter.cs
- XPathBinder.cs
- CodeTypeReferenceCollection.cs
- SourceFileBuildProvider.cs
- XPathNodePointer.cs
- cookie.cs
- TextStore.cs
- KeySplineConverter.cs
- SerializerProvider.cs
- ByteStreamBufferedMessageData.cs
- EntityDataSourceColumn.cs
- Environment.cs
- Rethrow.cs
- StandardBindingElementCollection.cs