语言

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 。

返回

具有指定项索引、行类型和行状态的 A FormViewRow 。

注解

该方法 CreateRow 是由控件调用 FormView 的帮助程序方法,用于创建 FormViewRow 用于表示控件中的行的对象。

继承者说明

扩展 FormView 类时,可以重写此方法以返回 FormViewRow 具有自定义设置的对象。

适用于

另请参阅