DataGridView.CurrentRow Propriété

Définition

Obtient la ligne contenant la cellule active.

public:
 property System::Windows::Forms::DataGridViewRow ^ CurrentRow { System::Windows::Forms::DataGridViewRow ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewRow CurrentRow { get; }
[<System.ComponentModel.Browsable(false)>]
member this.CurrentRow : System.Windows.Forms.DataGridViewRow
Public ReadOnly Property CurrentRow As DataGridViewRow

Valeur de propriété

DataGridViewRow

DataGridViewRow qui représente la ligne contenant la cellule active ou null s'il n'y a aucune cellule active.

Attributs

Remarques

Pour modifier la ligne actuelle, vous devez définir la CurrentCell propriété sur une cellule de la ligne souhaitée.

S’applique à

Voir aussi