DataGridView.CurrentRow Propiedad

Definición

Obtiene la fila que contiene la celda actual.

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)]
public System.Windows.Forms.DataGridViewRow? CurrentRow { get; }
[<System.ComponentModel.Browsable(false)>]
member this.CurrentRow : System.Windows.Forms.DataGridViewRow
Public ReadOnly Property CurrentRow As DataGridViewRow

Valor de propiedad

Objeto DataGridViewRow que representa la fila que contiene la celda actual o null si no hay ninguna celda actual.

Atributos

Comentarios

Para cambiar la fila actual, debe establecer la CurrentCell propiedad en una celda de la fila deseada.

Se aplica a

Consulte también