DatagridView change highlight row color

0
0

Hi,

I’d like to change the highlight row color. I was searching for a method for it but I may be looking in the wrong place.

Is this possible? if not could it be a feature request?

Jorge

  • You must to post comments
0
0

Jorge,

a future Wisej release will bring major improvements in that area.
We´re still figuring out the details.

I will keep you updated.

Best regards
Frank

  • Jorge Bastos
    Thanks Frank, please do. Jorge
  • Luca (ITG)
    In the next update you will be able to create and/or change any part of the Application.ClientTheme object by code. And you will also be able to clone a theme, modify if, and used it only for specific session.
  • Mauro Luzzo
    We can also use this feature, is it avaiable yet?
  • You must to post comments
0
0

Frank,

I see, but for what i want to achieve wont work, i want to change it on runtime depending on that the logged user has defined.

Could be added as a feature? to change it via code like: grid.rowstyle.highlightcolor = color.red

  • You must to post comments
0
0

Hi Jorge,

overriding the theme colors can be done by defining a mixin like this.

{
“name”: “MyMixin”,
“colors”:
{
“table-row-background-even”: “yellow”,
“table-row-background-odd”: “green”
}
}

Put these lines in a text file called e.g. MyMixin.mixin.theme and put it into your projects Themes folder.

You can override any theme color like this.
See Theme Builder to find out more about the available settings.

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.