combox cell type font retain

Posted by: srvjith on 8 September 2017, 12:31 pm EST

  • Posted 8 September 2017, 12:31 pm EST

    Hi,


    I have a cell with some text and the text is Bold.


    I have to convert this cell into a combobox cell.  I have been able to convert into a combobox type and also add the text back into combobox.


    But how can I retain the font of the cell in the combobox cell type? 


    for ex: If I had text "Test" in bold,  I want the item "Test" to be bold in the comboboc cell type.


     


     


    Regards,


    Sar

  • Replied 8 September 2017, 12:31 pm EST

    Sar,


    I would suggest using the GetCompositeInfo method to get the StyleInfo object for the cell, and then change the CellType property in this object and use the SetDirectInfo method to set the StyleInfo object back into the cell.

Need extra support?

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

Learn More

Forum Channels