Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Along the lines of customized grouping...Single group header for multiple columns grouping
posted

I need multi-column grouping, where multiple columns form a single groupbyrecord.  currently, it appears that each sortdescription that has its IsGroupBy flag set to true creates a group record.  I have the need to create a single group from multiple columns.  A way to concatenate the sortdescriptions for grouping.  Anybody done this yet, have a way to merge multiple groups in the same group tree?

Parents
No Data
Reply
  • 4850
    Suggested Answer
    Offline posted

    There is no feature build into the XamdataGrid to do this.

    However, you should be able to accomplish what you want by doing the following:

    1.       Set the XamDataGrid’s GroupByAreaLocation to ‘None’ to hide our grouping UI

    2.       The application can show its own UI for selecting groupby field criteria unless they are fixed in which case no UI is necessary.

    3.       Pick any Field in the FieldLayout’s Field’s collection (or add an Unbound field whose Visibility is set to Collapsed) and set its Settings.GroupByEvaluator to your implementation of the IGroupByEvaluator interface. The implementation of which will take into account the groupby criteria from 2 above.

    4.       Add a FieldSortDescription to the FieldLayout’s SortedFields collection for the field used in 3 above.

     

     

Children