HierarchicalDataBoundControl.OnDataSourceChanged(Object, EventArgs) Método

Definição

Chamado quando a instância IHierarchicalDataSource com a qual o controle associado a dados trabalha gera o evento DataSourceChanged.Called when the IHierarchicalDataSource instance that the data-bound control works with raises the DataSourceChanged event.

protected:
 virtual void OnDataSourceChanged(System::Object ^ sender, EventArgs ^ e);
protected virtual void OnDataSourceChanged (object sender, EventArgs e);
abstract member OnDataSourceChanged : obj * EventArgs -> unit
override this.OnDataSourceChanged : obj * EventArgs -> unit
Protected Overridable Sub OnDataSourceChanged (sender As Object, e As EventArgs)

Parâmetros

sender
Object

A origem do evento, o objeto IHierarchicalDataSource.The source of the event, the IHierarchicalDataSource object.

e
EventArgs

Um objeto EventArgs que contém dados do evento.An EventArgs object that contains event data.

Comentários

A HierarchicalDataBoundControl classe manipula o evento para o qual DataSourceChanged definir a RequiresDataBinding propriedade true .The HierarchicalDataBoundControl class handles the DataSourceChanged event to set the RequiresDataBinding property to true.

Aplica-se a