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
- EmptyEnumerator.cs
- GridViewDeletedEventArgs.cs
- TextCompositionEventArgs.cs
- ThreadStaticAttribute.cs
- Scene3D.cs
- TextTreeTextNode.cs
- ServiceDescription.cs
- ObjectNotFoundException.cs
- ValueUtilsSmi.cs
- Utils.cs
- Roles.cs
- ReadOnlyAttribute.cs
- TimeZone.cs
- ColorTransform.cs
- EventItfInfo.cs
- QueryableDataSourceEditData.cs
- DefaultSerializationProviderAttribute.cs
- Math.cs
- SettingsAttributeDictionary.cs
- ActivatableWorkflowsQueryResult.cs
- XmlTypeMapping.cs
- PublishLicense.cs
- SqlDataSourceFilteringEventArgs.cs
- PrimarySelectionGlyph.cs
- CompositeDataBoundControl.cs
- HostElement.cs
- Set.cs
- RuleSettings.cs
- SystemIPInterfaceProperties.cs
- DataGridPagerStyle.cs
- MergeLocalizationDirectives.cs
- SecureUICommand.cs
- CodeExpressionRuleDeclaration.cs
- LabelEditEvent.cs
- HtmlAnchor.cs
- DataBindingCollection.cs
- PagedDataSource.cs
- PageWrapper.cs
- RecipientInfo.cs
- Char.cs
- DataTableMapping.cs
- Root.cs
- KerberosReceiverSecurityToken.cs
- CqlBlock.cs
- StringComparer.cs
- WorkflowViewElement.cs
- validation.cs
- BasicKeyConstraint.cs
- DefaultMemberAttribute.cs
- TextServicesManager.cs
- ImmutableObjectAttribute.cs
- wmiutil.cs
- ConstructorBuilder.cs
- SpanIndex.cs
- PlainXmlDeserializer.cs
- TableLayoutPanelBehavior.cs
- ResolveDuplexCD1AsyncResult.cs
- PeerNameResolver.cs
- DesignerSerializerAttribute.cs
- WeakReferenceKey.cs
- DependencyPropertyKind.cs
- MimeTypePropertyAttribute.cs
- ArrayElementGridEntry.cs
- HttpWebRequestElement.cs
- PropertyGridView.cs
- TextRunTypographyProperties.cs
- BitmapImage.cs
- Selector.cs
- messageonlyhwndwrapper.cs
- FixedStringLookup.cs
- DesignerVerbCollection.cs
- CodeExporter.cs
- HtmlFormWrapper.cs
- RegistrationProxy.cs
- ApplicationSecurityInfo.cs
- ZoneLinkButton.cs
- XmlImplementation.cs
- ControlAdapter.cs
- BaseTemplatedMobileComponentEditor.cs
- FileClassifier.cs
- PenThreadPool.cs
- WorkflowOperationContext.cs
- RecognizerInfo.cs
- IdentityReference.cs
- CompleteWizardStep.cs
- SiteMapDataSourceView.cs
- AndCondition.cs
- ManagementNamedValueCollection.cs
- UInt32Storage.cs
- ValueTable.cs
- ComponentEvent.cs
- SrgsItemList.cs
- XmlSchemaObject.cs
- ToolStripPanelRow.cs
- DataSetUtil.cs
- XmlQueryTypeFactory.cs
- UIAgentMonitorHandle.cs
- UnsafeNativeMethods.cs
- NativeConfigurationLoader.cs
- PreProcessor.cs