BaseDataBoundControlDesigner.OnDataSourceChanged(Boolean) Método

Definição

Chamado quando a fonte de dados do objeto BaseDataBoundControl associado for alterada.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)

Parâmetros

forceUpdateView
Boolean

true para forçar a atualização de marcação de tempo de design; caso contrário, false.true to force the update of design-time markup; otherwise, false.

Comentários

O OnDataSourceChanged método se conecta à fonte de dados atual.The OnDataSourceChanged method connects to the current data source. Se a fonte de dados atual for diferente da fonte de dados à qual o controle foi conectado anteriormente, ou forceUpdateView for true , o controle associado será redesenhado na superfície de design.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.

Notas aos Herdeiros

Substitua o OnDataSourceChanged(Boolean) método para executar ações adicionais que são necessárias quando a fonte de dados do controle associado é alterada.Override the OnDataSourceChanged(Boolean) method to perform additional actions that are required when the data source of the associated control changes.

Se você substituir o OnDataSourceChanged(Boolean) método, chame a implementação base antes de executar outro processamento.If you override the OnDataSourceChanged(Boolean) method, call the base implementation before performing other processing.

Aplica-se a

Confira também