Can C1FlexGrid support Placeholder feature?

Posted by: freedom93123 on 13 January 2022, 5:21 pm EST

    • Post Options:
    • Link

    Posted 13 January 2022, 5:21 pm EST - Updated 3 October 2022, 10:43 pm EST

    Hi there,

    I would like to know if there is any property to set placeholder in C1FlexGrid like below?

    If no, then it means I shall write my own placeholder source code by using BeforeEdit event, AfterEdit event and change cell style to grey font etc, in order to achieve ‘Placeholder’ effect.

  • Posted 14 January 2022, 5:10 am EST

    Hi,

    There is no direct property for the placeholder in C1FlexGrid. As a workaround, you can use the OwnerDrawCell event to manually draw the placeholder text on the cells of the required columns when they are empty. Kindly refer to the attached sample showing the same.

    Regards,

    Kartik Dua

    Placeholder_C1FlexGrid.zip

  • Posted 14 January 2022, 6:17 am EST

    Thanks Kartik Dua,

    You’ve made my day.

Need extra support?

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

Learn More

Forum Channels