NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataView.Item

Gets a row of data from a specified table.

[C#] In C#, this member 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 Item 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.

See Also

DataView Class | DataView Members | System.Data Namespace