Home › Forums › WPF controls › Xceed DataGrid for WPF › Grouping for column of double values does not group by displayed precision
I have multiple columns in an xCeed WPF DataGridControl which bind to double values. In most cases I am using converter to change to displayed value to 4 digits of precision.
However, when grouping by these columns, the groups are created using the underlying values rather than the displayed values.
So, for example, 0.00010 and 0.00011 which are both displayed as 0.0001 in the column cells, are grouped as two separate items instead of being grouped together.
Is there a way to specify the precision used for grouping double or float values?
You need to provide a custom DataGridGroupDescription in order to accomplish this.
See the “Custom grouping” code snippet on the following page for an example on how to do this: