Monday, December 19, 2011

how to apply CSS class to MVCcontrib grid

In Razor view:
@Html.Grid(
...
    ).Attributes(@class => "ContribGrid")

In css file:
.ContribGrid th
{
   background: red;
}

No comments:

Post a Comment