Custom Cell Template

Posted by: brett.hewitt on 12 January 2018, 1:05 am EST

    • Post Options:
    • Link

    Posted 12 January 2018, 1:05 am EST

    Hello,

    Is it possible to apply a custom cell template?

    Based on a property of an object (Ok, Warning, or Error) I wish to apply a specific background colour, font colour, and a custom icon. I can change the colours without using a template, but I can’t see anyway of customising the template to include an icon of my choice next to the text. I thought I might be able to create a class deriving from FormattingRuleBase and use that, but the documentation is sparse on this area and I can’t figure out how to implement it properly.

    Thanks

  • Posted 15 January 2018, 2:18 am EST

    Hello,

    There is no direct way to achieve what you are looking for. You can add CustomDrawingObject for cell (using icon) and set the style for cell.

    Please refer to the documentation given here to create a customdrawingobject for cell:

    http://help.grapecity.com/spread/SpreadWPF/webframe.html#GrapeCity.WPF.SpreadSheet.UI~GrapeCity.Windows.SpreadSheet.UI.DrawingObjectManager~SetDrawingObjectProvider.html

    Thanks,

    Deepak Sharma

Need extra support?

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

Learn More

Forum Channels