DataBoundControlDesigner::ConnectToDataSource Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Disconnects events from the previous data source and connects them to the current data source.

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

virtual bool ConnectToDataSource() override

Return Value

Type: System::Boolean

true if the data-bound control connected to a new data source; false if the data source did not change.

.NET Framework
Available since 2.0
Return to top