[DocumentTemplate] specify odd and even styling for datagrid
0
Hi, in document template, I have a datagrid that shows 200 rows. How to have different backgrounds colors (white/#dfdfdf) for odd and even rows ? Is it possible to specify a class in the style editor in the custom styles ? Then I could use css like this : .pdf-distri-row:nth-child(odd) { background-color: white; } .pdf-distri-row:nth-child(even) { background-color: #dfdfdf; } I attach a snapshot of the style editor Thanks a lot for your help
asked
Sebastien Bonelli
1 answers
2
You can enable striping in the properties of the Datagrid. This should achieve the result. I don't know if you can change the underlying CSS of the striping by heart.