DataGridView.CurrentRow 屬性

定義

取得包含目前儲存格的資料列。Gets the row containing the current cell.

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

屬性值

DataGridViewRow,表示包含目前儲存格的資料列;如果沒有目前儲存格,則為 nullThe DataGridViewRow that represents the row containing the current cell, or null if there is no current cell.

屬性

備註

若要變更目前的資料列,您必須將 [CurrentCell] 屬性設為所需資料列中的資料格。To change the current row, you must set the CurrentCell property to a cell in the desired row.

適用於

另請參閱