Gaurav Sharma
Gaurav Sharma

Reputation: 2770

WPF DataGrid Grouping Not Updating On Updates

Our WPF DataGrid does not update its groups when we edit items. We group by field X, and the item for which we change field X still stays in the same group. How do we make the grid always dynamically keep its groups up to date?

Upvotes: 1

Views: 579

Answers (2)

Gaurav Sharma
Gaurav Sharma

Reputation: 2770

Turns out one of our team members discovered the IEditableObject interface, which allows the level of control we needed to make this work.

Upvotes: 0

HCL
HCL

Reputation: 36775

Don't know for the DataGrid, but for other other grouping controls in WPF this is done automatically. Have you implemented INotifyPropertyChanged for the grouping property and does it fired? Was the current row of the DataGrid updated?

Upvotes: 1

Related Questions