ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2017-01-30 08:06:37

ju00ro
Member
Registered: 2017-01-30
Posts: 2

GridBackground doesn't work in WPF

Hi,

            // create an appearance style set by two key colors
            ControlAppearanceStyle rgcs = new ControlAppearanceStyle(Color.Gray, Color.DarkOrange, false);

            // change colors
            rgcs.SetColor(ControlAppearanceColors.GridBackground, Color.Black);
           
            // apply to control
            reoGridControl.ControlStyle = rgcs;


The ControlAppearanceColors.GridBackground doesn't work in WPF.
Is same way to change these parameters than Windows version?

Thanks,

Offline

#2 2017-03-03 13:55:42

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: GridBackground doesn't work in WPF

Maybe you can change the background color of WPF element? until ReoGrid has a natively support on this.

Offline

#3 2017-03-08 20:37:47

ju00ro
Member
Registered: 2017-01-30
Posts: 2

Re: GridBackground doesn't work in WPF

Jing, Thank you for your respond,
But I think I do somthing wrong..
When I set controlStyle (what I sent in first post) which contains GridBackground style, and  I run it does't work, all cells have white background.
Could you give me a short code sample how can I do it?

Thanks,
Best regards, ROLAND

Offline

Board footer

Powered by FluxBB