Control.DataBindChildren Control.DataBindChildren Control.DataBindChildren Control.DataBindChildren Method

定義

繫結資料來源至伺服器控制項的子控制項。Binds a data source to the server control's child controls.

protected:
 virtual void DataBindChildren();
protected virtual void DataBindChildren ();
abstract member DataBindChildren : unit -> unit
override this.DataBindChildren : unit -> unit
Protected Overridable Sub DataBindChildren ()

備註

使用DataBindChildren方法繫結至伺服器控制項的子控制項的資料來源。Use the DataBindChildren method to bind a data source to the child controls of a server control.

注意

伺服器控制項上呼叫時,這個方法不會不將資料繫結至控制項。When called on a server control, this method does not bind data to the control. 若要繫結的伺服器控制項及其所有子控制項,呼叫DataBind方法。To bind a server control and all its child controls, call the DataBind method.

適用於

另請參閱