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
- TaskForm.cs
- TypeExtension.cs
- HtmlForm.cs
- Transaction.cs
- CriticalFinalizerObject.cs
- ComponentRenameEvent.cs
- TabControlDesigner.cs
- IIS7UserPrincipal.cs
- XmlAttributeAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- UmAlQuraCalendar.cs
- CommonDialog.cs
- BindableTemplateBuilder.cs
- WinInet.cs
- SymbolMethod.cs
- ResXDataNode.cs
- QueryAccessibilityHelpEvent.cs
- TraceEventCache.cs
- ThaiBuddhistCalendar.cs
- ImageCollectionEditor.cs
- ToolStripScrollButton.cs
- TextBoxAutomationPeer.cs
- TreeViewBindingsEditorForm.cs
- SymbolTable.cs
- ModelFactory.cs
- EventLogTraceListener.cs
- DataSourceCache.cs
- SecurityImpersonationBehavior.cs
- ZoneButton.cs
- UriTemplateClientFormatter.cs
- ListViewItemEventArgs.cs
- HeaderUtility.cs
- SqlClientMetaDataCollectionNames.cs
- PropertyChangeTracker.cs
- CryptoProvider.cs
- ProfilePropertySettingsCollection.cs
- odbcmetadatacolumnnames.cs
- LoadWorkflowByInstanceKeyCommand.cs
- TextServicesPropertyRanges.cs
- WsdlParser.cs
- HitTestParameters.cs
- SqlXml.cs
- AstTree.cs
- DataServices.cs
- HttpHandlerActionCollection.cs
- SqlConnectionPoolProviderInfo.cs
- FileVersion.cs
- SqlParameter.cs
- TextBoxView.cs
- SystemTcpConnection.cs
- HostVisual.cs
- PropertyValueUIItem.cs
- Ticks.cs
- ParserContext.cs
- SelectedPathEditor.cs
- StateDesigner.Helpers.cs
- EdmItemCollection.cs
- SQLInt16.cs
- Html32TextWriter.cs
- GridEntryCollection.cs
- InOutArgument.cs
- GB18030Encoding.cs
- PropertyGroupDescription.cs
- StrokeCollectionConverter.cs
- XhtmlBasicObjectListAdapter.cs
- TextDecorations.cs
- WindowsListBox.cs
- WmlLiteralTextAdapter.cs
- DefaultValueTypeConverter.cs
- StrongName.cs
- WebPartAddingEventArgs.cs
- MemberHolder.cs
- InsufficientMemoryException.cs
- wmiprovider.cs
- Pkcs9Attribute.cs
- SafeFileMapViewHandle.cs
- ObfuscationAttribute.cs
- OleDbTransaction.cs
- ButtonFieldBase.cs
- SchemaInfo.cs
- Msmq.cs
- PersonalizablePropertyEntry.cs
- MobileControlsSectionHelper.cs
- VirtualizingPanel.cs
- TextBoxLine.cs
- CustomSignedXml.cs
- SelectedGridItemChangedEvent.cs
- PriorityBindingExpression.cs
- TreeViewItem.cs
- TransformConverter.cs
- DataGridViewCellEventArgs.cs
- Site.cs
- IdnMapping.cs
- CheckBoxRenderer.cs
- CodeDOMUtility.cs
- SqlMetaData.cs
- StagingAreaInputItem.cs
- DataSourceExpression.cs
- BooleanAnimationBase.cs
- KeySpline.cs