DataGridViewRowCollection.GetRowState(Int32) 方法

定義

取得具有指定索引的資料列狀態。

public:
 virtual System::Windows::Forms::DataGridViewElementStates GetRowState(int rowIndex);
public virtual System.Windows.Forms.DataGridViewElementStates GetRowState (int rowIndex);
abstract member GetRowState : int -> System.Windows.Forms.DataGridViewElementStates
override this.GetRowState : int -> System.Windows.Forms.DataGridViewElementStates
Public Overridable Function GetRowState (rowIndex As Integer) As DataGridViewElementStates

參數

rowIndex
Int32

資料列的索引。

傳回

DataGridViewElementStates

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

例外狀況

rowIndex 小於零或大於集合中的資料列數目減一。

適用於

另請參閱