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
- CancelEventArgs.cs
- ArgIterator.cs
- EdmMember.cs
- Misc.cs
- WebPartsSection.cs
- ListViewItemMouseHoverEvent.cs
- PageAdapter.cs
- CodeDirectoryCompiler.cs
- SQLBinaryStorage.cs
- AnimationLayer.cs
- Sql8ConformanceChecker.cs
- ProtocolViolationException.cs
- DbgUtil.cs
- ObjectReaderCompiler.cs
- ListViewSortEventArgs.cs
- TableLayoutSettings.cs
- ConfigurationSection.cs
- RootDesignerSerializerAttribute.cs
- Wizard.cs
- Vector3DValueSerializer.cs
- PtsContext.cs
- ValidationSummary.cs
- ZipIOLocalFileHeader.cs
- HwndSourceKeyboardInputSite.cs
- WebPartCatalogAddVerb.cs
- sitestring.cs
- InputChannelBinder.cs
- WhitespaceSignificantCollectionAttribute.cs
- RepeaterItemCollection.cs
- Subtree.cs
- Operator.cs
- StrokeIntersection.cs
- TextParaClient.cs
- SqlRowUpdatingEvent.cs
- RectAnimationBase.cs
- GridSplitter.cs
- TreeIterators.cs
- Sql8ConformanceChecker.cs
- RemotingSurrogateSelector.cs
- CharUnicodeInfo.cs
- FontUnitConverter.cs
- TextTreeDeleteContentUndoUnit.cs
- MemoryMappedView.cs
- Style.cs
- CheckoutException.cs
- SymLanguageType.cs
- TrackingMemoryStreamFactory.cs
- RulePatternOps.cs
- Matrix.cs
- ToolStripGripRenderEventArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- BinaryFormatter.cs
- SiteMapNodeCollection.cs
- MethodCallConverter.cs
- ToolBarTray.cs
- UrlPath.cs
- ResourceContainer.cs
- CheckBox.cs
- ToolConsole.cs
- PackageStore.cs
- TdsParserSessionPool.cs
- XPathNavigatorKeyComparer.cs
- DiagnosticsConfiguration.cs
- X500Name.cs
- BaseValidator.cs
- HandlerMappingMemo.cs
- SrgsRuleRef.cs
- XmlQueryContext.cs
- XPathBinder.cs
- ProcessModelInfo.cs
- ObjectConverter.cs
- XmlReflectionImporter.cs
- ObjectReaderCompiler.cs
- LayoutDump.cs
- PersistenceContext.cs
- PenCursorManager.cs
- BufferedReadStream.cs
- Command.cs
- ObjectSet.cs
- VectorConverter.cs
- EventProxy.cs
- EntityDescriptor.cs
- WebSysDefaultValueAttribute.cs
- odbcmetadatacolumnnames.cs
- DataBoundControlParameterTarget.cs
- NullReferenceException.cs
- Variant.cs
- CalendarTable.cs
- CursorConverter.cs
- PrimitiveType.cs
- AttachedPropertyBrowsableAttribute.cs
- SqlConnectionHelper.cs
- TdsEnums.cs
- SerialErrors.cs
- EdmComplexPropertyAttribute.cs
- UnsafeCollabNativeMethods.cs
- SqlTypesSchemaImporter.cs
- DrawingAttributes.cs
- PrimitiveSchema.cs
- SessionPageStatePersister.cs