WPF DataGrid Filtering - CollectionViewSource Refreshing WPF DataGrid Filtering - CollectionViewSource Refreshing wpf wpf

WPF DataGrid Filtering - CollectionViewSource Refreshing


Call Refresh() on View property of CollectionViewSource to get it refreshed.

In case you want to do it on button click, you need to access CollectionViewSource from window resources first and then call refresh on its View.

((CollectionViewSource)this.Resources["cvsCustomers"]).View.Refresh();