FlexGrid icon in column header

Posted by: fsegui on 27 November 2021, 5:32 pm EST

    • Post Options:
    • Link

    Posted 27 November 2021, 5:32 pm EST

    Hello,

    I’m using C1FlexGrid binded to a datasource.

    I’m defining the columns prior to binding the datasource to personalize the headers (captions and other things).

    For some columns, I want to also add an icon in the header. How can I achieve that ?

    Thanks

    Florent

  • Posted 28 November 2021, 11:55 pm EST

    Hi Florent,

    You can set the icons in the column headers using the SetCellImage method of the C1FlexGrid. Kindly refer to the attached sample showing the same.

    Please let us know if you need any other information.

    Regards

    Avnish

    IconColumnHeaders_C1FlexGrid.zip

  • Posted 29 November 2021, 6:01 am EST

    Hi Avnish,

    Thanks a lot, works like a charm.

    Another question: is it possible to define a tooltip for a cell directly?

    Best regards,

    Florent

  • Posted 30 November 2021, 1:39 am EST

    Hi Florent,

    If you want to display tooltips for the cells whose contents

    are partially hidden, you can do so by setting the ShowCellLabels property of the C1FlexGrid to true.

    If you want to show your custom tooltip, you can use the MouseMove event of the C1FlexGrid to set the tooltip according to the cell with the current mouse pointer.

    Kindly refer to the attached sample showing the same.

    CellTooltip_C1FlexGrid.zip

    Please let us know if you need any other information.

    Regards,

    Avnish

  • Posted 30 November 2021, 6:03 am EST

    Hi Avnish,

    Thanks for the sample. It suits my needs.

    Regards

    Florent

Need extra support?

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

Learn More

Forum Channels