DetailsView.InitializeRow(DetailsViewRow, DataControlField) 方法

定义

初始化指定的 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)

参数

row
DetailsViewRow

要初始化的 DetailsViewRowThe DetailsViewRow to initialize.

field
DataControlField

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

注解

方法是由控件调用的帮助器方法, 用于初始化指定DetailsViewRow的对象。 DetailsView InitializeRowThe 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.

继承者说明

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

适用于

另请参阅