DataGridViewRow.State 屬性

定義

取得資料列的目前狀態。

public:
 virtual property System::Windows::Forms::DataGridViewElementStates State { System::Windows::Forms::DataGridViewElementStates get(); };
public override System.Windows.Forms.DataGridViewElementStates State { get; }
member this.State : System.Windows.Forms.DataGridViewElementStates
Public Overrides ReadOnly Property State As DataGridViewElementStates

屬性值

DataGridViewElementStates 值的位元組合,指出資料列的狀態。

例外狀況

資料列位於 DataGridView 控制項中而且是一個共用資料列。

備註

您無法將此屬性與共享資料列搭配使用,因為共用資料列不會在本機儲存其狀態。 若要取得共用資料列的狀態,請使用 GetState 方法。

適用於

另請參閱