Unplanned
Last Updated: 28 Apr 2023 12:07 by Chris
Chris
Created on: 27 Apr 2023 12:14
Category: Grid
Type: Bug Report
1
Grid bound to ExpandoObject throws when Aggregates are used and if there are decimal values.

I am binding a Grid to a collection of ExpandoObjects. In the collection, there are decimal values. When I try to add Aggregates for the decimal values the Grid throws an exception. 

 

<AdminEdit>

As a workaround, you can cast the decimal values to double instead.

</AdminEdit>

2 comments
Chris
Posted on: 28 Apr 2023 12:07
I would clarify that the issue is not the column type, but when you have a grid bound to a ExpandoObject with Aggregates and add or remove a column included in the aggregates.  An error is thrown specifying the column with the aggregate value is no longer present.  I hope there is a way to manipulate the aggregate list or force a rebinding (rebinding the grid doesn't make a difference). I am unable to determine how to force or change a recalculating of the aggregates.
Chris
Posted on: 27 Apr 2023 15:33
I have tried to cast the decimal values to double, but the error remains.  Do you have any other suggestions? Please find attached an example project of this issue still remaining after casting to a double.