This question is locked. New answers and comments are not allowed.
In a grid, for the column Price, I would like to display the content of column value only if the property 'Status' != Constants.Invalid for that lineitem..
columns.Bound(p => p.Price).Template(
@<text>
@if (item.Status.Equals(Constants.Invalid))
{
@Html.Label("")
}
else
{
@Html.Label(item.Price.ToString())
}
</text>
);
This doesn't seem to work ! It is still displaying the value of Price for all rows although one of them has item.Status=Constants.Invalid.