title: ASP.NET MVC 3 WebGrid - Conditional Column Formatting
body: <p>Is there anyway to do conditional formatting with Webgrid in ASP.NET MVC 3?</p>
  
  <p>I know I can say:
   ... <code>grid.Column("PropertyName", "Header Name", style: "bold")</code> ...</p>
  
  <p>and it will render HTML that for the TD that says: <code>class="bold"</code>.</p>
  
  <p>What I want, is to render some TDs in one style and other TDs in another style. Like:
  ... <code>grid.Column("PropertyName", "Header Name", style: (item) =&gt; (item.Property &gt; 100) ? "bold" : "normal"))</code> ....</p>
  
  <p>but this causes the error "Best overloaded method match ... has some invalid arguments."</p>
  
  <p>Any idea if this is possible?</p>
  
  <p>Thanks
  .Jim Biddison </p>