Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ColumnReorderedEventArgs.cs
- LinkedList.cs
- PolyBezierSegment.cs
- AdornerDecorator.cs
- LeafCellTreeNode.cs
- DirectoryObjectSecurity.cs
- DispatcherFrame.cs
- DiscoveryInnerClientAdhoc11.cs
- RegexRunner.cs
- DataGridViewAdvancedBorderStyle.cs
- CompositeControl.cs
- Matrix3D.cs
- XmlTextEncoder.cs
- OleDbEnumerator.cs
- SqlTriggerContext.cs
- WebDisplayNameAttribute.cs
- XmlNodeChangedEventArgs.cs
- ListItemParagraph.cs
- ResourceDefaultValueAttribute.cs
- DataPagerCommandEventArgs.cs
- PermissionRequestEvidence.cs
- OneOfTypeConst.cs
- NetworkInformationPermission.cs
- CryptoHelper.cs
- NativeMethods.cs
- SecurityManager.cs
- WebPartDescriptionCollection.cs
- SyndicationSerializer.cs
- SafeNativeMethodsOther.cs
- TypeInfo.cs
- NodeFunctions.cs
- InstanceStoreQueryResult.cs
- SqlConnection.cs
- ChunkedMemoryStream.cs
- EmissiveMaterial.cs
- TextSchema.cs
- WebPartConnectionsCloseVerb.cs
- MarkupWriter.cs
- GestureRecognizer.cs
- SettingsPropertyCollection.cs
- WorkflowViewStateService.cs
- CfgRule.cs
- MetricEntry.cs
- DbParameterHelper.cs
- WebPartUtil.cs
- SqlErrorCollection.cs
- WindowsToolbarAsMenu.cs
- EdmItemError.cs
- ReverseInheritProperty.cs
- X509ChainPolicy.cs
- ControlValuePropertyAttribute.cs
- LineServicesRun.cs
- ReferentialConstraint.cs
- DataListItemEventArgs.cs
- BitmapInitialize.cs
- FixedSOMPage.cs
- BitmapSizeOptions.cs
- LineGeometry.cs
- BadImageFormatException.cs
- HttpListenerPrefixCollection.cs
- NeutralResourcesLanguageAttribute.cs
- LassoSelectionBehavior.cs
- PeerMessageDispatcher.cs
- XmlDocumentType.cs
- OperationCanceledException.cs
- SByteStorage.cs
- CodeChecksumPragma.cs
- SemaphoreFullException.cs
- TcpProcessProtocolHandler.cs
- XmlWriterSettings.cs
- Wildcard.cs
- WinOEToolBoxItem.cs
- ScanQueryOperator.cs
- EditorAttribute.cs
- SubqueryRules.cs
- ServiceHttpHandlerFactory.cs
- XmlSchemaSequence.cs
- DataGridColumnCollectionEditor.cs
- LineGeometry.cs
- NavigationCommands.cs
- DurationConverter.cs
- ObjectStateEntryDbDataRecord.cs
- ResourceDisplayNameAttribute.cs
- Int64AnimationUsingKeyFrames.cs
- DependencyPropertyDescriptor.cs
- PageAsyncTask.cs
- PersonalizationProviderHelper.cs
- ActiveXContainer.cs
- TdsParserStaticMethods.cs
- ADMembershipProvider.cs
- SystemDiagnosticsSection.cs
- XPathExpr.cs
- DataGridCommandEventArgs.cs
- XomlCompilerResults.cs
- Command.cs
- BitStack.cs
- HttpCapabilitiesSectionHandler.cs
- TableRow.cs
- LineBreakRecord.cs
- MenuItemBindingCollection.cs