I have an IList<Myobject> which is bound to my grid. I have gross and net value gridboundcolumn's which have and aggregate set to "sum" and another column which has a Count aggregate which are all automatically rendered in the footer.
If my query returns an empty list I recieve a NullReferenceException instead of the default empty table which should return 'Zero' for the computed aggregates. If I remove the aggregate attributes from the columns the grid works fine.
My 'MyObject' class' gross value and net value are nullable decimals (decimal?) which are assigned null in the constructor, however if I remove the aggregate attributes on these two columns, the Count aggregate still produces the exception.
Any Ideas?
Thanks
If my query returns an empty list I recieve a NullReferenceException instead of the default empty table which should return 'Zero' for the computed aggregates. If I remove the aggregate attributes from the columns the grid works fine.
My 'MyObject' class' gross value and net value are nullable decimals (decimal?) which are assigned null in the constructor, however if I remove the aggregate attributes on these two columns, the Count aggregate still produces the exception.
Any Ideas?
Thanks