DetailsView.InitializeRow(DetailsViewRow, DataControlField) Method

Definition

初始化指定的 DetailsViewRow 对象。Initializes the specified DetailsViewRow object.

protected:
 virtual void InitializeRow(System::Web::UI::WebControls::DetailsViewRow ^ row, System::Web::UI::WebControls::DataControlField ^ field);
protected virtual void InitializeRow (System.Web.UI.WebControls.DetailsViewRow row, System.Web.UI.WebControls.DataControlField field);
abstract member InitializeRow : System.Web.UI.WebControls.DetailsViewRow * System.Web.UI.WebControls.DataControlField -> unit
override this.InitializeRow : System.Web.UI.WebControls.DetailsViewRow * System.Web.UI.WebControls.DataControlField -> unit
Protected Overridable Sub InitializeRow (row As DetailsViewRow, field As DataControlField)

Parameters

row
DetailsViewRow

要初始化的 DetailsViewRowThe DetailsViewRow to initialize.

field
DataControlField

与该行对应的 DataControlFieldThe DataControlField that corresponds to the row.

Remarks

InitializeRow 方法是 DetailsView 控件调用的帮助器方法,用于初始化指定 DetailsViewRow 对象。The InitializeRow method is a helper method called by the DetailsView control to initialize the specified DetailsViewRow object. 该行针对 field 参数中包含的 DataControlField 对象进行了初始化。The row is initialized for the DataControlField object contained in the field parameter.

Notes to Inheritors

扩展 DetailsView 类时,可以重写此方法以创建自己的自定义行。When extending the DetailsView class, you can override this method to create your own custom row.

Applies to

See also