DataRowCollection.IndexOf Method (DataRow)

 

Gets the index of the specified DataRow object.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

Public Function IndexOf (
	row As DataRow
) As Integer

Parameters

row
Type: System.Data.DataRow

The DataRow to search for.

Return Value

Type: System.Int32

The zero-based index of the row, or -1 if the row is not found in the collection.

.NET Framework
Available since 2.0
Return to top
Show: