語言

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 與此設計器相關聯的控制項,或該控制項的複製品。

適用於

另請參閱