Bewerken

Delen via


BaseDataBoundControlDesigner.OnDataSourceChanged(Boolean) Method

Definition

Called when the data source of the associated BaseDataBoundControl object changes.

protected:
 virtual void OnDataSourceChanged(bool forceUpdateView);
protected virtual void OnDataSourceChanged (bool forceUpdateView);
abstract member OnDataSourceChanged : bool -> unit
override this.OnDataSourceChanged : bool -> unit
Protected Overridable Sub OnDataSourceChanged (forceUpdateView As Boolean)

Parameters

forceUpdateView
Boolean

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

Remarks

The OnDataSourceChanged 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.

Notes to Inheritors

Override the OnDataSourceChanged(Boolean) method to perform additional actions that are required when the data source of the associated control changes.

If you override the OnDataSourceChanged(Boolean) method, call the base implementation before performing other processing.

Applies to

See also