DataGridViewRowCollection.IndexOf(DataGridViewRow) Metoda

Definice

Vrátí index zadané položky v kolekci.

public:
 int IndexOf(System::Windows::Forms::DataGridViewRow ^ dataGridViewRow);
public int IndexOf(System.Windows.Forms.DataGridViewRow dataGridViewRow);
member this.IndexOf : System.Windows.Forms.DataGridViewRow -> int
Public Function IndexOf (dataGridViewRow As DataGridViewRow) As Integer

Parametry

dataGridViewRow
DataGridViewRow

The DataGridViewRow to locate in the DataGridViewRowCollection.

Návraty

Index value , pokud je DataGridViewRow nalezen v objektu DataGridViewRowCollection; v opačném případě - 1.

Platí pro

Viz také