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

Called when the data source of the associated System.Web.UI.WebControls.BaseDataBoundControl object changes.

Syntax

protected virtual void OnDataSourceChanged (bool forceUpdateView)

Parameters

forceUpdateView
true to force the update of design-time markup; otherwise, false.

Remarks

The BaseDataBoundControlDesigner.OnDataSourceChanged(bool) method connects to the current data source. If the current data source is different from the data source to which the control was previously connected, or forceUpdateView is true, the associated control is redrawn on the design surface.

Requirements

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