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;
///
/// 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
- DataServiceSaveChangesEventArgs.cs
- FixedTextPointer.cs
- Repeater.cs
- RoleServiceManager.cs
- CodeDomLocalizationProvider.cs
- HttpCapabilitiesEvaluator.cs
- MetadataSource.cs
- WebPartConnectionsConnectVerb.cs
- LowerCaseStringConverter.cs
- InvalidFilterCriteriaException.cs
- SQLDecimal.cs
- FormViewPageEventArgs.cs
- FlowDocument.cs
- ActivityAction.cs
- ProcessThread.cs
- PersonalizationStateInfo.cs
- XmlEnumAttribute.cs
- ISO2022Encoding.cs
- ApplicationCommands.cs
- HotCommands.cs
- ManagedWndProcTracker.cs
- securitycriticaldataClass.cs
- PrimitiveXmlSerializers.cs
- OutputCacheSection.cs
- ImageSourceValueSerializer.cs
- FrameworkElement.cs
- OrderablePartitioner.cs
- PageParserFilter.cs
- ClientTargetSection.cs
- ReadWriteSpinLock.cs
- EventProviderWriter.cs
- TextShapeableCharacters.cs
- BreadCrumbTextConverter.cs
- RightsManagementPermission.cs
- ConstraintEnumerator.cs
- StateWorkerRequest.cs
- AuthenticationService.cs
- WorkflowRuntimeSection.cs
- RegularExpressionValidator.cs
- ImageFormat.cs
- XhtmlBasicLiteralTextAdapter.cs
- TraceXPathNavigator.cs
- figurelength.cs
- Reference.cs
- ConnectionPointGlyph.cs
- ExtensionQuery.cs
- FunctionDescription.cs
- MatrixValueSerializer.cs
- SizeValueSerializer.cs
- _ServiceNameStore.cs
- XmlHierarchicalDataSourceView.cs
- ViewBox.cs
- RoleManagerSection.cs
- WindowInteropHelper.cs
- MailWebEventProvider.cs
- LockedBorderGlyph.cs
- SafeCryptoHandles.cs
- SelectionUIHandler.cs
- BlurEffect.cs
- InkCanvas.cs
- XmlAtomicValue.cs
- ScriptModule.cs
- SystemResources.cs
- StandardToolWindows.cs
- SuppressMergeCheckAttribute.cs
- FrameworkElementAutomationPeer.cs
- ValidatorCollection.cs
- TraceSection.cs
- xml.cs
- safex509handles.cs
- RuntimeCompatibilityAttribute.cs
- TitleStyle.cs
- MimeMultiPart.cs
- UnaryNode.cs
- XmlDataSourceView.cs
- ParseElement.cs
- PersianCalendar.cs
- XmlSchemaGroup.cs
- SnapshotChangeTrackingStrategy.cs
- XamlRtfConverter.cs
- ParameterBuilder.cs
- ProfileService.cs
- DrawingGroupDrawingContext.cs
- HttpApplicationFactory.cs
- CryptoHelper.cs
- ParallelTimeline.cs
- ElapsedEventArgs.cs
- ListViewGroupConverter.cs
- CanonicalFontFamilyReference.cs
- Matrix.cs
- FormattedTextSymbols.cs
- Ops.cs
- DynamicUpdateCommand.cs
- ByteAnimationUsingKeyFrames.cs
- CopyAction.cs
- EventLogEntryCollection.cs
- LayoutTableCell.cs
- AssociatedControlConverter.cs
- SoapSchemaMember.cs
- Comparer.cs