Getting and setting the colors of active row and column of selected cell(s)

Posted by: info on 1 June 2021, 3:44 pm EST

  • Posted 1 June 2021, 3:44 pm EST - Updated 30 September 2022, 4:20 am EST

    Hi how can I get and set the colors of the active row and column of the selected cell(s) ? I want to do it by the spread designer and by code, thanks!

  • Posted 1 June 2021, 6:00 pm EST - Updated 30 September 2022, 4:20 am EST

    Hi,

    You can create a new Renderer for Column and Row Headers and use it in a custom skin:

    https://www.grapecity.com/spreadnet/docs/v14/online-win/spwin-sheetskincreate.html

    You will need to set following properties:

    NormalBackgroundColor

    SelectedBackgroundColor

    ActiveBackgroundColor

    SelectedActiveBackgroundColor

    Please refer the following screenshot for the same:

    You can refer the mentioned documentation link and the attached sample for the programmatic method.

    CustomHeaderStyles.zip

    Regards,

    Jitender

  • Posted 3 June 2021, 7:00 am EST

    Ok I will check this thanks!

Need extra support?

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

Learn More

Forum Channels