DataGridViewRowCollection.Remove(DataGridViewRow) Méthode

Définition

Supprime la ligne de la collection.

public:
 virtual void Remove(System::Windows::Forms::DataGridViewRow ^ dataGridViewRow);
public virtual void Remove (System.Windows.Forms.DataGridViewRow dataGridViewRow);
abstract member Remove : System.Windows.Forms.DataGridViewRow -> unit
override this.Remove : System.Windows.Forms.DataGridViewRow -> unit
Public Overridable Sub Remove (dataGridViewRow As DataGridViewRow)

Paramètres

dataGridViewRow
DataGridViewRow

Ligne à supprimer de DataGridViewRowCollection.

Exceptions

dataGridViewRow a la valeur null.

dataGridViewRow n’est pas contenu dans cette collection.

  • ou - dataGridViewRow est une ligne partagée.

Le contrôle DataGridView associé exécute l’une des opérations suivantes qui empêche temporairement l’ajout de nouvelles lignes :

S’applique à

Voir aussi