DataGridView.CurrentRow 屬性

定義

取得包含目前儲存格的資料列。

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

屬性值

DataGridViewRow,表示包含目前儲存格的資料列;如果沒有目前儲存格,則為 null

屬性

備註

若要變更目前的資料列,您必須將 CurrentCell 屬性設定為所需資料列中的儲存格。

適用於

另請參閱