Home Forums WPF controls Xceed DataGrid for WPF Grouping for column of double values does not group by displayed precision

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • bohannjn
    Participant
    Post count: 3
    #50059 |

    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?

    Jim

    Diane [Xceed]
    Moderator
    Post count: 1353

    Hi bohannjn,

    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:

    http://forums.xceed.com/wp-content/documentation/xceed-datagrid-for-wpf/webframe.html#How-to%20Grouping%20Data%20Items.html

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.