How to set Column Header Text Color

Posted by: cpn on 10 June 2020, 7:22 am EST

    • Post Options:
    • Link

    Posted 10 June 2020, 7:22 am EST

    How do I set the color of the text in the column headers. I’m using the DLL version, and I can select between different appearance styles, and when using SS_APPEARANCESTYLE_ENHANCED I can change the background, but not the foreground text?

    Kindly cpede

  • Posted 11 June 2020, 6:31 am EST

    Hi,

    Please refer the following documentation link which provides detailed information on setting text colors in column/row headers:

    http://help.grapecity.com/spread/Spread8/WebSiteHelp/prop735.html#1001289

    Additional information on setting forecolor for the sheet:

    http://help.grapecity.com/spread/Spread8/WebSiteHelp/cells89.html#668691

    http://help.grapecity.com/spread/Spread8/WebSiteHelp/prop339.html#2069918

    Thanks,

    Pragati

  • Posted 12 June 2020, 2:19 am EST

    Hi Pragati, thanks for the quick answer.

    Using the following code

    
    SSSetShadowColor(m_General->GetSafeHwnd(), SPREAD_COLOR_NONE, RGB(255, 0, 0), SPREAD_COLOR_NONE, SPREAD_COLOR_NONE);
    
    

    It seems, that the method SetShadowColor does the trick (maybe not the best name for a method setting the color of the header text).

    Thanks for the help, - I’m still beating my colleagues programming .NET, using your old DLL spread version. :slight_smile:

    -cpede

  • Posted 12 June 2020, 3:12 am EST

    Glad to know that it worked :slight_smile:

Need extra support?

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

Learn More

Forum Channels