Any help on this would be great. I have a collection bound to the grid that includes the sales for each day
Date Net Sales1/Nov/2009 10.002/Nov/2009 15.003/Nov/2009 50.00
I have added a template column called Sales To Date and I need to show the running totals in this column
Date Net Sales Sales To Date1/Nov/2009 10.00 10.002/Nov/2009 15.00 25.003/Nov/2009 50.00 75.00
any thoughts on how to achive this without changing the underlying object.
Thanks
David
Hi David,
I'm not sure if you still need help with this, but one way to do this is using a converter to calculate the value for the given row. Attached is a quick sample that demonstrates it.
Note that the "Sales To Date" column is not bound to a field in the data source. The attached sample uses 9.2 version of XamWebGrid. If you're using a newer version, you'll have to replace the TemplateColumn with UnboundColumn.
Hope that helps,