How to refresh a WPF DataGrid?

前端 未结 7 1732
旧时难觅i
旧时难觅i 2020-12-14 07:15

I have a WPF DataGrid with some data. You can add rows through a separate window. The DataContext is the same, a LINQ-to-SQL object. Binding is also the same, I bind the \"I

相关标签:
7条回答
  • 2020-12-14 07:50

    try datagrid.Items.Refresh() from here http://programmer.wrighton.org/2009/01/wpf-datagrid-items-refresh.html

    0 讨论(0)
提交回复
热议问题