I'm using a datagrid in a UserControl. How can I refresh Datagrid automatically when its ItemsSource changed without using DataGrid.Items.Refresh();
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With