語言

GridViewRow(Int32, Int32, DataControlRowType, DataControlRowState) 建構函式

定義

初始化 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索引。

dataItemIndex
Int32

DataItem的指標 在標的 DataSet中 。

rowType
DataControlRowType

其中一個 DataControlRowType 列舉值。

rowState
DataControlRowState

列舉值的位元組合 DataControlRowState 。

備註

使用此建構子初始化一個新的物件實例 GridViewRow 。

下表顯示 GridViewRow實例的初始屬性值。

房產 初始值
DataItemIndex 參數的 dataItemIndex 值。
RowIndex 參數的 rowIndex 值。
RowState 參數的 rowState 值。
RowType 參數的 rowType 值。

適用於

另請參閱