Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
600
Color of Font in SummaryLine
posted

Hi,

I have a UltraWinGrid with a SummaryDisplayArea. One Column is numeric. My question is: How can I make the Color of the SummaryCell in addiction to the content. I want red color if content is negativ and black color if positiv.

Thanks

Hansjörg Wintermantel

  • 469350
    Verified Answer
    Offline posted

     Hi Hansjörg,

    Handle the SummaryValueChanged event of the grid. Then you can exmaine e.SummaryValue.Value and set e.SummaryValue.Appearance to an appropriate appearance based on that value. 

    If you want to set this up at design-time instead of writing code, then you should check out ValueBasedAppearances.