Update Datagrid Automatically When Changing Its ItemsSource

I am using datagrid in UserControl. How can I update Datagrid automatically when changing its ItemsSource without using DataGrid.Items.Refresh ();

+5
source share
2 answers

What you need to do is use the observable collection.

here is an old but valid example: http://www.codeproject.com/KB/WPF/WPFDataGridExamples.aspx

+3
source

All Articles