show different colors for odd and even rows in a Grid

Hi,

in Vaadin 14.1, is it possible to have different colors for odd and even rows? I’ve seen the video https://vaadin.com/learn/training/v14-grid and the colors are different for odd and even rows, but it seems like this video is really for Vaadin 10. In my test application, I can’t see any difference between rows.

the good thing of asking is that you find the answer by yourself just after asking…

I just need to add a theme variant as shown in https://vaadin.com/components/vaadin-grid/java-examples

e.g.grid.addThemeVariants(GridVariant.LUMO_ROW_STRIPES);

Thanks a lot. i was searching for this for a long time.

Hi, do we have any option to add Column Stripes?