Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / DataGridItem.cs / 1305376 / DataGridItem.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Web.UI;
///
/// Represents an individual item in the .
///
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 {
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
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;
///
/// Represents an individual item in the .
///
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 {
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
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
- InProcStateClientManager.cs
- CodeAttributeArgument.cs
- TreeViewDesigner.cs
- ThemeDictionaryExtension.cs
- RequestUriProcessor.cs
- SpecularMaterial.cs
- ObjectQuery.cs
- GeneralTransformCollection.cs
- FormsAuthenticationEventArgs.cs
- QilExpression.cs
- Socket.cs
- ListBoxItemAutomationPeer.cs
- CatalogZone.cs
- RangeEnumerable.cs
- TranslateTransform.cs
- CheckBox.cs
- NameNode.cs
- WindowsProgressbar.cs
- JumpTask.cs
- userdatakeys.cs
- WindowsBrush.cs
- Int64.cs
- ConstraintCollection.cs
- SoapSchemaImporter.cs
- Update.cs
- SimpleMailWebEventProvider.cs
- HighContrastHelper.cs
- GeometryModel3D.cs
- TokenBasedSet.cs
- Vector3DAnimationUsingKeyFrames.cs
- ValidatingReaderNodeData.cs
- RayHitTestParameters.cs
- Empty.cs
- Atom10FormatterFactory.cs
- ListView.cs
- ObjectTokenCategory.cs
- DesignerEditorPartChrome.cs
- TypeInfo.cs
- InlineUIContainer.cs
- DefaultMergeHelper.cs
- CompressEmulationStream.cs
- XmlTextReaderImplHelpers.cs
- RepeaterDesigner.cs
- XmlILModule.cs
- ValidatingReaderNodeData.cs
- WebDescriptionAttribute.cs
- EntitySqlException.cs
- QilTernary.cs
- FileLevelControlBuilderAttribute.cs
- DesignerProperties.cs
- DispatcherExceptionFilterEventArgs.cs
- WorkflowDesigner.cs
- TextTabProperties.cs
- VerificationAttribute.cs
- DBCommand.cs
- AssociationSetEnd.cs
- XmlSerializer.cs
- XslCompiledTransform.cs
- HostedElements.cs
- BamlTreeNode.cs
- ComplexTypeEmitter.cs
- Action.cs
- CodeTypeReferenceExpression.cs
- DataBinder.cs
- AnnotationService.cs
- NullExtension.cs
- PathSegment.cs
- SiteIdentityPermission.cs
- MobileComponentEditorPage.cs
- WinFormsSecurity.cs
- GroupItemAutomationPeer.cs
- DetailsViewModeEventArgs.cs
- Debug.cs
- Number.cs
- TypeConverterAttribute.cs
- Condition.cs
- ErrorTableItemStyle.cs
- AttributeCollection.cs
- BinaryCommonClasses.cs
- ReachObjectContext.cs
- ObsoleteAttribute.cs
- TerminatorSinks.cs
- GridViewRowPresenter.cs
- UInt32.cs
- DataColumnCollection.cs
- ErrorTolerantObjectWriter.cs
- PartialToken.cs
- SmtpNetworkElement.cs
- WebBaseEventKeyComparer.cs
- BooleanProjectedSlot.cs
- xmlfixedPageInfo.cs
- PropertyChangedEventManager.cs
- DataAdapter.cs
- TextTreeNode.cs
- NonParentingControl.cs
- SortQuery.cs
- FileLevelControlBuilderAttribute.cs
- CheckBoxFlatAdapter.cs
- _SafeNetHandles.cs
- EmbeddedMailObject.cs