DataGridViewRowCollection::IndexOf Method (DataGridViewRow^)
.NET Framework (current version)
Returns the index of a specified item in the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- dataGridViewRow
-
Type:
System.Windows.Forms::DataGridViewRow^
The DataGridViewRow to locate in the DataGridViewRowCollection.
Return Value
Type: System::Int32The index of value if it is a DataGridViewRow found in the DataGridViewRowCollection; otherwise, -1.
.NET Framework
Available since 2.0
Available since 2.0
Show: