How to refresh datagrid in WPF How to refresh datagrid in WPF wpf wpf

How to refresh datagrid in WPF


Reload the datasource of your grid after the update

myGrid.ItemsSource = null;myGrid.ItemsSource = myDataSource;


From MSDN -

CollectionViewSource.GetDefaultView(myGrid.ItemsSource).Refresh();