since you set background color for the table, it might not be overriding that style for the row. try using !important for the tr row class
table.gridtable tr.name {
background-color: #999999 !important;
border-width: 1px;
}
else try this
<table class = "table">
<tr >
<td>red</td>
</tr>
<tr>
<td>red</td>
</tr>
<tr class="blue">
<td>blue</td>
</tr>
<tr>
<td>blue</td>
</tr>
</table>
.blue {
background-color: blue;
}
.table
{
background-color: orange;
}
}