DataRowCollection::IndexOf Method (DataRow^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the index of the specified DataRow object.

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

public:
int IndexOf(
	DataRow^ row
)

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: