This documentation is archived and is not being maintained.

HierarchicalDataBoundControlDesigner.DataBind Method

Binds the associated control to the design-time data source.

Namespace: System.Web.UI.Design.WebControls
Assembly: System.Design (in system.design.dll)

protected override void DataBind (
	BaseDataBoundControl dataBoundControl
)
protected void DataBind (
	BaseDataBoundControl dataBoundControl
)
protected override function DataBind (
	dataBoundControl : BaseDataBoundControl
)
Not applicable.

Parameters

dataBoundControl

The HierarchicalDataBoundControl to bind to the design-time data source.

The DataBind method first sets the DataSource property of the HierarchicalDataBoundControl control to reference the design-time data source and sets the DataSourceID property to a null reference (Nothing in Visual Basic). The DataBind calls back to the DataBind method of the control that is derived from the HierarchicalDataBoundControl class to bind to the design-time data source. Finally, it restores the original values of the DataSource and DataSourceID properties.

The dataBoundControl parameter is the control that is derived from the HierarchicalDataBoundControl class that is associated with this designer, or a copy of that control.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: