FormView.CreateRow(Int32, DataControlRowType, DataControlRowState) 方法

定義

建立使用指定項目索引、資料列型別和資料列狀態的 FormViewRow 物件。

protected:
 virtual System::Web::UI::WebControls::FormViewRow ^ CreateRow(int itemIndex, System::Web::UI::WebControls::DataControlRowType rowType, System::Web::UI::WebControls::DataControlRowState rowState);
protected virtual System.Web.UI.WebControls.FormViewRow CreateRow (int itemIndex, System.Web.UI.WebControls.DataControlRowType rowType, System.Web.UI.WebControls.DataControlRowState rowState);
abstract member CreateRow : int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.FormViewRow
override this.CreateRow : int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.FormViewRow
Protected Overridable Function CreateRow (itemIndex As Integer, rowType As DataControlRowType, rowState As DataControlRowState) As FormViewRow

參數

itemIndex
Int32

要顯示之資料項目以零起始的索引。

rowType
DataControlRowType

其中一個 DataControlRowType 列舉值。

rowState
DataControlRowState

DataControlRowState 列舉值的位元組合。

傳回

FormViewRow,具有指定的項目索引、資料列型別和資料列狀態。

備註

方法是 CreateRow 控制項所呼叫的 FormView 協助程式方法,用來建立 FormViewRow 物件,用來代表控制項內的資料列。

給繼承者的注意事項

擴充 FormView 類別時,您可以覆寫這個方法,以傳回 FormViewRow 具有自訂設定的物件。

適用於

另請參閱