How to refresh a WPF DataGrid?

前端 未结 7 1771
旧时难觅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:45

    If you have a case when you have to reload a grid in another window , you can simply close that window and invoke it again.

提交回复
热议问题