In Flexgrid, can't sorting Multiple Columns back to front

Posted by: malishin on 27 July 2020, 2:46 pm EST

  • Posted 27 July 2020, 2:46 pm EST


    https://www.grapecity.com/componentone/docs/win/online-flexgrid/sortingmultiplecolumns.html

    this code can sort by second column,the sort by third column
    this.c1FlexGrid1.Sort(C1.Win.C1FlexGrid.SortFlags.UseColSort, 1, 2);


    but if you change the order of the two columns , as following code
    this.c1FlexGrid1.Sort(C1.Win.C1FlexGrid.SortFlags.UseColSort, 2, 1);

    Unable to sort the grid,
    Does flexgrid support multi-column sorting in any column order´╝č

  • Replied 27 July 2020, 5:17 pm EST

    Hello Malishin,

    No, Flexgrid does not support multi-column sorting in any column order.
    When you sort multiple columns, the sorting options are applied to each column, starting from the leftmost column in the range and proceeding to the right.

    As a workaround, you can change the position of columns to get the desired output.

    Regards,
    Prabhat Sharma.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels