Datagrid Running total Column

May 5, 2009 at 4:20 PM
I need to display a running total in a datagrid.  Each row should contain a column which includes the total from the previous row +/- a value from the current row.

The grid is bound to a collectionviewsource defined in Xaml.
The items in the source come from Linq Entities.

I know one way would be to create the source as a list of custom items and hold a total column that i can calculate before binding to the grid, but I was hoping there was a better way.

Can this be done with any sort of converter?  There must be a better way.