PAINT ROW with conditional on rows

Mar 29, 2016 at 8:33 PM
Edited Mar 29, 2016 at 8:34 PM
I want to paint lines with lower id that 11 green and greater than 11 red, but it happens painting a line, jumps and other paints as follows.
@Html.Grid(Model).Named("GridFunds").Columns(columns =>
   {
       columns.Add(c => c.id).Titled("id");
       columns.Add(c => c.name).Titled("Name").Filterable(true);
   }).WithPaging(20).SetRowCssClasses(c => c.id > 11 ? "maior" : c.id <= 11 ? "menor" : string.Empty) ;
<style>
tr.maior td {
    background-color: #FF6666;
}
tr.menor td {
    background-color:#99FFCC;
}
</style>

![Image]https://uploaddeimagens.com.br/imagens/grid-jpg--10