DataGridViewRowCollection.IndexOf(DataGridViewRow) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.