DataGrid.OnItemsSourceChanged(IEnumerable, IEnumerable) Metodo

Definizione

Richiamato quando la proprietà ItemsSource cambia.

protected:
 override void OnItemsSourceChanged(System::Collections::IEnumerable ^ oldValue, System::Collections::IEnumerable ^ newValue);
protected override void OnItemsSourceChanged (System.Collections.IEnumerable oldValue, System.Collections.IEnumerable newValue);
override this.OnItemsSourceChanged : System.Collections.IEnumerable * System.Collections.IEnumerable -> unit
Protected Overrides Sub OnItemsSourceChanged (oldValue As IEnumerable, newValue As IEnumerable)

Parametri

oldValue
IEnumerable

La vecchia origine.

newValue
IEnumerable

La nuova origine.

Commenti

Se la proprietà è true, le colonne vengono rigenerate quando la AutoGenerateColumnsItemsSource proprietà cambia. Se possibile, la cella o la selezione di righe verranno mantenute.

Si applica a