ListControlDesigner.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

ListControl该控件或该控件的副本派生的关联控件。

注解

DataBoundControlDesigner对于基类,该方法DataBind设置DataSource对象的属性DataSourceIDDataBoundControl以引用设计时数据源,然后调用BaseDataBoundControl.DataBind该方法,然后将和DataSource属性还原DataSourceID到其原始值。

ListControlDesigner但是,对于类,DataBind该方法没有功能,因为ListItem对象刚刚添加到集合中Items

适用于

另请参阅