GridViewDesigner.DataBind(BaseDataBoundControl) Metod

Definition

Binder den associerade kontrollen till datakällan designtid.

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)

Parametrar

dataBoundControl
BaseDataBoundControl

Att GridView binda till datakällan designtid.

Kommentarer

Metoden DataBind binder den associerade GridView kontrollen till datakällan designtid och tilldelar ett unikt värde till fältet för DesignerRegionAttributeName varje cell i GridView kontrollens designtidsåtergivning.

Parametern dataBoundControl är den GridView kontroll som är associerad med den här designern eller en kopia av den kontrollen.

Gäller för

Se även