Reputation: 1145
I'm using a datagrid in a UserControl. How can I refresh Datagrid automatically when its ItemsSource changed without using DataGrid.Items.Refresh();
Upvotes: 6
Views: 20119
Reputation: 2074
What you need to do is use an observable collection.
here is an old but valid example: http://www.codeproject.com/KB/WPF/WPFDataGridExamples.aspx
Upvotes: 3