DataGrid Updating Group Totals when an item property is changed

Dec 7, 2010 at 9:25 AM

I am using the .Net 4 Datagrid to display a business class (for our purposes "Employee") which implements INotifyPropertyChanged and IEditableObject in an Observable collection.

These items are grouped in the datagrid (on Department) and I am using a value converter to show totals in the group header (eg  "Average Salary").  This all works fine when its loaded,  however the user is able to update the Salary field for each employee. When this happens, the Average Salary group total does not update to reflect the change made by the user.

I found the following sites but they don't seem to have solved my problem.

http://drwpf.com/blog/2008/10/20/itemscontrol-e-is-for-editable-collection/

Any help is much appreciated!!!