I have simple tabla which display data. Now I have few columns and last column displays only 1 or 0. Now I whant to color in red all row that have value 1 in this last column.
I done this:
...
<tr class="@((row.LastColumn == 1) ? "error" : "")">
<td>...</td>
<td>...</td>
...
In my Css I have done this:
.error
{
color:black;
background-color: red;
}
And if I run app, and View Element in Chrome I can see this in row where is this last Column like 1:
<tr class="error">
So it recognise 1 and change class to "error", but line is not colored in read...
Any idea why?