How to show sort icon in first row

Posted by: r.zeller on 24 April 2023, 3:24 am EST

    • Post Options:
    • Link

    Posted 24 April 2023, 3:24 am EST - Updated 24 April 2023, 3:29 am EST

    I want to add filter row in my FlexGrid like in the example “FilterRow with totals”.

    However, the sort icon always is shown in the second row and not in the column header.

    How can the sort icon be shown in the first row?

  • Posted 25 April 2023, 3:38 am EST

    Hi,

    The C1FlexGrid shows the sort glyphs on the last fixed row, which in this case, is the FilterRow. To avoid this, you can disable the default sort glyphs using the C1FlexGrid.ShowSortPosition property. Then, you can manually draw a sort glyph in the header cell using the C1FlexGrid.OwnerDrawCell event. Please see the attached sample project for reference.

    If you still face any issues, please let us know.

    Attachment: FilterRow_Updated.zip

    Thanks, and Kind Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels