Export (0) Print
Expand All

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
[C#]
public DataRowView this[
 int recordIndex
] {get;}
[C++]
public: __property DataRowView* get_Item(
 int recordIndex
);
[JScript]
returnValue = DataViewObject.Item(recordIndex);
-or-
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]

recordIndex
The index of a record in the DataTable.

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

recordIndex
The index of a record in the DataTable.

Property Value

A DataRowView of the desired row.

Requirements

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

Show:
© 2014 Microsoft