System.Web.UI.Design.WebControls.BaseDataBoundControlDesigner.ConnectToDataSource Method

When overridden in a derived class, typically unhooks events from the previous data source, and then attaches new events to the new data source.

Syntax

protected abstract bool ConnectToDataSource ()

Returns

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

Remarks

The implementation of the BaseDataBoundControlDesigner.ConnectToDataSource method typically involves unhooking events from the previous data source, and then attaching new events to the new data source.

Requirements

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