Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TdsValueSetter.cs
- SHA512Managed.cs
- BitVector32.cs
- Activator.cs
- AxWrapperGen.cs
- RectConverter.cs
- unitconverter.cs
- EdmSchemaError.cs
- PeerCollaboration.cs
- SortQuery.cs
- ContractMethodInfo.cs
- ToolStripPanelSelectionGlyph.cs
- DeferredSelectedIndexReference.cs
- Matrix3D.cs
- DataSourceView.cs
- NameValueConfigurationElement.cs
- PropertyGridEditorPart.cs
- XmlWriter.cs
- SmiXetterAccessMap.cs
- SegmentInfo.cs
- SchemaNamespaceManager.cs
- CodeAccessSecurityEngine.cs
- StopStoryboard.cs
- BaseInfoTable.cs
- WaveHeader.cs
- SourceLineInfo.cs
- BindingMAnagerBase.cs
- TextOptions.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XmlValidatingReaderImpl.cs
- UseManagedPresentationBindingElementImporter.cs
- CodeIndexerExpression.cs
- MetafileHeaderWmf.cs
- PeerCredential.cs
- DataMemberFieldConverter.cs
- HttpWrapper.cs
- RemotingConfiguration.cs
- AsynchronousChannelMergeEnumerator.cs
- _ContextAwareResult.cs
- EntityContainerEntitySet.cs
- TimeZone.cs
- EventRecord.cs
- NodeLabelEditEvent.cs
- VirtualPath.cs
- EntityDesignerBuildProvider.cs
- RtfToXamlReader.cs
- MemberHolder.cs
- ControlParameter.cs
- ExceptionUtil.cs
- StateDesigner.cs
- HttpListenerPrefixCollection.cs
- CodeCatchClause.cs
- ClockController.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- XmlIgnoreAttribute.cs
- _ContextAwareResult.cs
- SqlBinder.cs
- DataControlExtensions.cs
- AtomPub10CategoriesDocumentFormatter.cs
- BasePattern.cs
- LogReserveAndAppendState.cs
- ProtectedConfigurationSection.cs
- MoveSizeWinEventHandler.cs
- QuaternionRotation3D.cs
- DictionarySectionHandler.cs
- TreePrinter.cs
- Script.cs
- TemplatePagerField.cs
- CrossContextChannel.cs
- LicFileLicenseProvider.cs
- ContentType.cs
- ListItemParagraph.cs
- FullTextState.cs
- TraceSection.cs
- ConnectionStringsSection.cs
- ConstNode.cs
- MemberMemberBinding.cs
- NavigationFailedEventArgs.cs
- DataServiceClientException.cs
- DynamicMetaObjectBinder.cs
- StrongNameHelpers.cs
- GenericIdentity.cs
- _SafeNetHandles.cs
- DesignTimeXamlWriter.cs
- WindowsHyperlink.cs
- IDQuery.cs
- ScrollViewerAutomationPeer.cs
- ReflectionUtil.cs
- VisualBasicSettingsHandler.cs
- DesignerVerb.cs
- ConsoleTraceListener.cs
- RadioButton.cs
- StrongBox.cs
- UriWriter.cs
- ToolboxDataAttribute.cs
- EFTableProvider.cs
- EntityDataSourceStatementEditorForm.cs
- ScriptingSectionGroup.cs
- MappingMetadataHelper.cs
- SourceFileInfo.cs