DataGridViewRowCollection.IndexOf(DataGridViewRow) Méthode

Définition

Retourne l’index d’un élément spécifié dans la collection.

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

Paramètres

dataGridViewRow
DataGridViewRow

À DataGridViewRow localiser dans le DataGridViewRowCollection.

Retours

Index de value s’il est trouvé DataGridViewRow dans le DataGridViewRowCollection; sinon, -1.

S’applique à

Voir aussi