overwrite odd-row css style with set_row_color?

Hi,

I have a grid with “modern” skin. It uses differen css styles for even and odd rows.
Now I want to set a different color to some rows. For this I have a “beforeRender” function in my mysql connector.

if (...) { $row->set_row_color("red"); }
This css style works fine on the odd rows, but is overwritten from the css style of the even rows.
Is there any other way to set the row color dynamically that works for me?

Thanks!

Unfortunately the issue cannot be reconstructed.
Please, have a look at the attached screenshot.

If issue still occurs - please provide any kind of sample or a demo link where the issue can be reconstructed.


I have had the same problem.

If you change the cell’s style, it works.

$row->set_row_style("background-color:#33FF66");

wow, using the row-style works like a charm! :slight_smile:
Thanks!