This documentation is archived and is not being maintained.

DataGridItemCollection.Item Property

Gets the DataGridItem object at the specified index in the collection.

[C#] In C#, this property is the indexer for the DataGridItemCollection class.

[Visual Basic]
Public Default ReadOnly Property Item( _
   ByVal index As Integer _
) As DataGridItem
[C#]
public DataGridItem this[
 int index
] {get;}
[C++]
public: __property DataGridItem* get_Item(
 int index
);
[JScript]
returnValue = DataGridItemCollectionObject.Item(index);
-or-
returnValue = DataGridItemCollectionObject(index);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Arguments [JScript]

index
The zero-based index of the DataGridItem object to retrieve from the collection.

Parameters [Visual Basic, C#, C++]

index
The zero-based index of the DataGridItem object to retrieve from the collection.

Property Value

The DataGridItem object at the specified index in the collection.

Remarks

Use this indexer to get a DataGridItem object from the DataGridItemCollection at the specified index, using array notation.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

DataGridItemCollection Class | DataGridItemCollection Members | System.Web.UI.WebControls Namespace | DataGridItem

Show: