共用方式為


DetailsViewDesigner.DataBind(BaseDataBoundControl) 方法

定義

將關聯控制項繫結至設計階段資料來源。

protected:
 override void DataBind(System::Web::UI::WebControls::BaseDataBoundControl ^ dataBoundControl);
protected override void DataBind (System.Web.UI.WebControls.BaseDataBoundControl dataBoundControl);
override this.DataBind : System.Web.UI.WebControls.BaseDataBoundControl -> unit
Protected Overrides Sub DataBind (dataBoundControl As BaseDataBoundControl)

參數

dataBoundControl
BaseDataBoundControl

要繫結至設計階段資料來源的 DetailsView 控制項。

備註

方法 DataBind 會根據 為 DetailsView 指定的功能,將相關聯的 DetailsView 控制項系結至設計階段資料來源,並計算呼叫器數目和自動產生的資料列數目。

參數 dataBoundControl 代表 DetailsView 與此設計工具相關聯的控制項,或該控制項的複本。

適用於

另請參閱