Font size change before and after decimal

Posted by: sanket.joshi on 19 September 2021, 8:10 pm EST

  • Posted 19 September 2021, 8:10 pm EST

    Hi,

    We have a requirement in project where the user wants configuration to change the font size and style in the price field column before and after decimal point. We are using grapecity winform spread version 12 which we are using. Can you help us how to provide solution to the requirement

    example; they want like this

    112233.5555

    112233 - different font

    5555 - different font

    both values are part of price field so in one column of spread sheet

    Regards,

    Sanket

  • Posted 20 September 2021, 5:43 pm EST

    Hi,

    You can consider using RichTextCellType for this. Although this would require you to modify the actual values.

    Please check following documentation to see if this is appropriate for your requirements:

    https://help.grapecity.com/spread/SpreadNet12/WF/webframe.html#spwin-setrichtextcell.html

    If you don’t want to modify the cell value itself, then you can create a custom cell type that handles the cell rendering according to your requirements.

    You can refer the attached sample to see how this can be done.

    CustomNumericCell.zip

    Regards,

    Jitender

Need extra support?

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

Learn More

Forum Channels