Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我们编辑项目时,我们的 WPF DataGrid 不会更新其组。我们按字段 X 进行分组,我们更改字段 X 的项目仍然留在同一组中。我们如何使网格始终动态地保持其组是最新的?
不知道 DataGrid,但对于 WPF 中的其他其他分组控件,这是自动完成的。您是否为分组属性实现了 INotifyPropertyChanged 并触发了它?DataGrid 的当前行是否已更新?
结果我们的一位团队成员发现了 IEditableObject 接口,它允许我们进行这项工作所需的控制级别。