How to refresh datagrid in WPF
ado.net, c#, mysql, wpf, wpfdatagrid
Solution
Reload the datasource of your grid after the update
myGrid.ItemsSource = null;
myGrid.ItemsSource = myDataSource;
Problem
My source is in a MySQL database, I've made an update command and now I need to refresh my `DataGrid`. ``` MySqlCommand cmd = new MySqlCommand( "update request set status = " + StatusRequest(value) + " where id = " + rowView[0].ToString() + "", conn); MySqlDataReader myReader = cmd.ExecuteReader(); ``` How do I refresh my `DataGrid`?