GridViewRow(Int32, Int32, DataControlRowType, DataControlRowState) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 GridViewRow 類別的新執行個體。
public:
GridViewRow(int rowIndex, int dataItemIndex, System::Web::UI::WebControls::DataControlRowType rowType, System::Web::UI::WebControls::DataControlRowState rowState);
public GridViewRow(int rowIndex, int dataItemIndex, System.Web.UI.WebControls.DataControlRowType rowType, System.Web.UI.WebControls.DataControlRowState rowState);
new System.Web.UI.WebControls.GridViewRow : int * int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.GridViewRow
Public Sub New (rowIndex As Integer, dataItemIndex As Integer, rowType As DataControlRowType, rowState As DataControlRowState)
參數
- rowIndex
- Int32
控制項集合GridViewRow中Rows物件的GridView索引。
- rowType
- DataControlRowType
其中一個 DataControlRowType 列舉值。
- rowState
- DataControlRowState
列舉值的位元組合 DataControlRowState 。
備註
使用此建構子初始化一個新的物件實例 GridViewRow 。
下表顯示 GridViewRow實例的初始屬性值。
| 房產 | 初始值 |
|---|---|
| DataItemIndex | 參數的 dataItemIndex 值。 |
| RowIndex | 參數的 rowIndex 值。 |
| RowState | 參數的 rowState 值。 |
| RowType | 參數的 rowType 值。 |