Alternating Row Style with the ASP.NET MVC MvcContrib Grid

March 14, 2012 at 4:01 AMWebsite Sorcery

I will assume from your arrival on this particular page that you're attempting to create an Alternating Row / Zebra style on your MvcContrib Grid? You've come to the right place!

The MvcContrib Grid uses default styles, such as grid for the table, gridrow for a standard table row, and gridrow_alternate for alternating table rows. This means you can create your zebra style with the following CSS:

.gridrow
{
    background-color: Yellow;
}

.gridrow_alternate
{
    background-color: Red;
}

All I can say is, if you like the red and yellow color scheme then please take the time to like this page ;o)

Posted in: ASP.NET MVC | CSS

Tags: ,