overwrite odd-row css style with set_row_color?


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?


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.


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