开发者

Refresh Datagrid automatically when its ItemsSource changed

开发者 https://www.devze.com 2023-04-07 01:17 出处:网络
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 observ

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号