GridViewDesigner.DataBind(BaseDataBoundControl) 方法
定义
将关联控件绑定到设计时数据源。Binds the associated control to the design-time data source.
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
要绑定到设计时数据源的 GridView 控件。The GridView to bind to the design-time data source.
注解
DataBind方法将关联控件绑定 GridView 到设计时数据源,并为 DesignerRegionAttributeName GridView 控件的设计时呈现的每个单元格的字段指定唯一的值。The DataBind method binds the associated GridView control to the design-time data source and assigns a unique value to the DesignerRegionAttributeName field of each cell of the GridView control's design-time rendering.
dataBoundControl参数是 GridView 与此设计器关联的控件或该控件的副本。The dataBoundControl parameter is the GridView control that is associated with this designer, or a copy of that control.