Hi Amjad,
Thanks for contacting Syncfusion support.
Query: “This changes the row color for every other row. But how do I change the color of the other rows?”
We have achieved your requirement by applying the below style to other rows using the specific class name. Refer the below code example.
|
<style>
/*to style the alternate rows*/
.e-grid .e-row.e-altrow {
background-color: aliceblue;
}
/*to style the remaining rows*/
.e-grid .e-row {
background-color: antiquewhite;
}
</style>
|
Refer our UG documentatoin for your reference
Note: If you want to change the background color of row based on the record value, we suggest you to achieve this requirement by adding a specific class name to that row using RowDataBound event of the Grid.
Please get back to us if you have further queries.
Regards,
Vignesh Natarajan