DataGridView.CurrentRow Właściwość

Definicja

Pobiera wiersz zawierający bieżącą komórkę.

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

Wartość właściwości

DataGridViewRow

Element DataGridViewRow reprezentujący wiersz zawierający bieżącą komórkę lub null jeśli nie ma bieżącej komórki.

Atrybuty

Uwagi

Aby zmienić bieżący wiersz, należy ustawić CurrentCell właściwość na komórkę w żądanym wierszu.

Dotyczy

Zobacz też