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;
///
/// Represents an individual item in the .
///
[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;
///
/// Initializes a new instance of the class.
///
public DataGridItem(int itemIndex, int dataSetIndex, ListItemType itemType) {
this.itemIndex = itemIndex;
this.dataSetIndex = dataSetIndex;
this.itemType = itemType;
}
///
/// Represents an item in the .
///
public virtual object DataItem {
get {
return dataItem;
}
set {
dataItem = value;
}
}
///
/// Indicates the data set index number. This property is read-only.
///
public virtual int DataSetIndex {
get {
return dataSetIndex;
}
}
///
/// Indicates the index of the item in the . This property is
/// read-only.
///
public virtual int ItemIndex {
get {
return itemIndex;
}
}
///
/// Indicates the type of the item in the .
///
public virtual ListItemType ItemType {
get {
return itemType;
}
}
///
///
///
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;
///
/// Represents an individual item in the .
///
[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;
///
/// Initializes a new instance of the class.
///
public DataGridItem(int itemIndex, int dataSetIndex, ListItemType itemType) {
this.itemIndex = itemIndex;
this.dataSetIndex = dataSetIndex;
this.itemType = itemType;
}
///
/// Represents an item in the .
///
public virtual object DataItem {
get {
return dataItem;
}
set {
dataItem = value;
}
}
///
/// Indicates the data set index number. This property is read-only.
///
public virtual int DataSetIndex {
get {
return dataSetIndex;
}
}
///
/// Indicates the index of the item in the . This property is
/// read-only.
///
public virtual int ItemIndex {
get {
return itemIndex;
}
}
///
/// Indicates the type of the item in the .
///
public virtual ListItemType ItemType {
get {
return itemType;
}
}
///
///
///
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
- XhtmlBasicCalendarAdapter.cs
- ChannelBinding.cs
- TakeOrSkipQueryOperator.cs
- FrameworkElementAutomationPeer.cs
- PermissionSet.cs
- FormatterConverter.cs
- QilReplaceVisitor.cs
- HttpSessionStateWrapper.cs
- SiteMapNodeCollection.cs
- InternalEnumValidatorAttribute.cs
- DataKey.cs
- Delay.cs
- ClientUtils.cs
- HTMLTextWriter.cs
- HandlerMappingMemo.cs
- TimeoutHelper.cs
- TextTreeNode.cs
- BaseTreeIterator.cs
- InstanceKeyNotReadyException.cs
- TemplateFactory.cs
- CharacterMetricsDictionary.cs
- DataFormat.cs
- ObjectStateFormatter.cs
- WebPartVerbCollection.cs
- SolidColorBrush.cs
- ListView.cs
- UriGenerator.cs
- ReferenceSchema.cs
- ByteKeyFrameCollection.cs
- InputChannelBinder.cs
- XsdBuilder.cs
- TextTrailingWordEllipsis.cs
- Rect3DValueSerializer.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DictionaryEntry.cs
- WebScriptMetadataMessage.cs
- HttpRuntimeSection.cs
- dataSvcMapFileLoader.cs
- Pair.cs
- MergeFilterQuery.cs
- PartialCachingAttribute.cs
- ReachDocumentReferenceCollectionSerializer.cs
- WizardForm.cs
- MatrixStack.cs
- SQLDecimal.cs
- DrawingAttributeSerializer.cs
- Typeface.cs
- KerberosTicketHashIdentifierClause.cs
- CodeNamespaceCollection.cs
- cookiecontainer.cs
- Separator.cs
- ButtonChrome.cs
- TraceHandlerErrorFormatter.cs
- ContractBase.cs
- EnglishPluralizationService.cs
- DataControlFieldCell.cs
- ComNativeDescriptor.cs
- FixedSOMContainer.cs
- RemotingException.cs
- SchemaExporter.cs
- ITextView.cs
- HttpHostedTransportConfiguration.cs
- ListViewItemMouseHoverEvent.cs
- XmlTypeAttribute.cs
- AddressingProperty.cs
- ListViewItemMouseHoverEvent.cs
- DocumentViewerAutomationPeer.cs
- RecognizedAudio.cs
- InternalConfigRoot.cs
- CapabilitiesState.cs
- HostedTransportConfigurationBase.cs
- Comparer.cs
- ProgressiveCrcCalculatingStream.cs
- TableCellAutomationPeer.cs
- DataGridViewTopRowAccessibleObject.cs
- ModelItemDictionary.cs
- WorkflowQueuingService.cs
- HttpWriter.cs
- TableRowCollection.cs
- CapabilitiesRule.cs
- DataGridViewIntLinkedList.cs
- CryptoApi.cs
- Graphics.cs
- AssertValidation.cs
- DataBinding.cs
- HtmlWindowCollection.cs
- ChildTable.cs
- AppliedDeviceFiltersEditor.cs
- CodeGroup.cs
- WebControlsSection.cs
- X509UI.cs
- DeploymentSectionCache.cs
- ThemeDictionaryExtension.cs
- PaintEvent.cs
- OperationCanceledException.cs
- ToolStripDropDownDesigner.cs
- ExtendedProperty.cs
- XmlResolver.cs
- PlainXmlSerializer.cs
- SafeViewOfFileHandle.cs