Alternate css 2/4 instead of 1/2


Is there any possibility to alternate the css in grid for each 2 rows instead of each rows please?

I thank with enableAlterCss i could to this but not…

Thanks a lot for your help,

Unfortunately the enableAlterCss() is the only solution. And it works for the even/uneven rows.
You may try to add a css class/style for each your row in the xml:

<row id="12" class="css1" bgColor="red" style="color:blue;"> <cell> first column data </cell> <cell class="css2" style="font-weight:bold;"> second column data </cell> </row>


Thank you very much! It works fine now.
I used mygrid.enableAlterCss("",""); and

Best regards,