IndexOf Method

DataRowCollection.IndexOf Method (DataRow)


Gets the index of the specified DataRow object.

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

public int IndexOf(
	DataRow 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
© 2015 Microsoft