HierarchicalDataBoundControlDesigner.ConnectToDataSource Method ()

 

Performs the actions that are necessary to connect to the current data source.

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

protected override bool ConnectToDataSource()

Return Value

Type: System.Boolean

true if a connection to a new data source was performed; false if the old and new data source are the same.

The ConnectToDataSource method disconnects the DataSourceChanged and SchemaRefreshed events from the previous data source, and then attaches these events to the new data source.

.NET Framework
Available since 2.0
Return to top
Show: