I'm using a datagrid in a UserControl. How can I refresh Dat开发者_运维技巧agrid 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
精彩评论