This documentation is archived and is not being maintained.

DataView.Item Property

Gets a row of data from a specified table.

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

[Visual Basic]
Public Default ReadOnly Property Item( _
   ByVal recordIndex As Integer _
) As DataRowView
public DataRowView this[
 int recordIndex
] {get;}
public: __property DataRowView* get_Item(
 int recordIndex
returnValue = DataViewObject.Item(recordIndex);
returnValue = DataViewObject(recordIndex);

[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]

The index of a record in the DataTable.

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

The index of a record in the DataTable.

Property Value

A DataRowView of the desired row.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

DataView Class | DataView Members | System.Data Namespace