This topic demonstrates how to change the color of alternating rows of a C1GridView.
In the Designer
Complete the following steps:
In Source View
To change the color of alternating rows, add the following code between the <head> </head> tags as shown below:
<style type = "text/css">
// Set the color of alternating rows
.wijmo-wijgrid-alternatingrow
{
background-color:pink!important;
}
</style>
In CSS
By default, the “aristo” theme supports alternate row coloring in C1GridView. In order to modify any existing theme to get alternate row styles follow the steps below:
<link rel=”stylesheet” type=”text/css” href=”name.css”>
What You've Accomplished
When you run the project, the color of alternating rows is changed.