FlexGrid with color picker

Posted by: alex.corti on 26 May 2022, 5:32 am EST

    • Post Options:
    • Link

    Posted 26 May 2022, 5:32 am EST

    My customer needs to put a button into all the cell of one column (color is the name) his flexgrid.

    When He clicks the button the “Windows Color Picker” has to open.

    He selects the color, confirm and the code of the color will be able to appear on the cell.

    Is it possible?

    Thanks Alex

  • Posted 26 May 2022, 8:01 am EST

    Hi Alex,

    To show a button in the cells of a column, you can set the ComboList property for that Column to “…”. Then you can handle the CellButtonClick event of the C1FlexGrid to show a ColorDialog and set the value of the cell according to the selected Color. Kindly refer to the attached sample showing the same.

    ColorPickerColumn_FG.zip

    Best Regards,

    Kartik

  • Posted 26 May 2022, 9:42 am EST

    Hi Kartik,

    You help me to solve the problem.

    Thanks

    Alex

Need extra support?

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

Learn More

Forum Channels