RadzenDataGrid row styling (even/odd)

Hi @AlxFigueiredo,

The easiest way would be to set the --rz-grid-stripe-background-color CSS variable to the desired alternating row color. If you want to do that for all DataGrids you can use

.rz-datatable {
 --rz-grid-stripe-background-color: #333333;
}

We now use the nth-child selector to style alternating rows as it comes as a built-in feature. Here is the actual implementation: radzen-blazor/_grid.scss at master · radzenhq/radzen-blazor · GitHub

1 Like