アプリケーションを MVC 3 に移行し、System.Web.Helpers.WebGrid を使用しようとしています。次のようなhtmlコードを取得したいと思います。
<table>
<tr style="background-color: <%= item.Color %>">
</tr>
<tr style="background-color: <%= item.Color %>">
</tr>
<tr style="background-color: <%= item.Color %>">
</tr>
</table>
行ごとに css クラスを定義できるプロパティがありrowStyle
ますが、行ごとに異なるスタイルがあります。簡単に達成できますか?