GridView Style based on bound data.

Posted by Matthew Jones on Stack Overflow See other posts from Stack Overflow or by Matthew Jones
Published on 2010-04-30T14:20:00Z Indexed on 2010/04/30 21:27 UTC
Read the original article Hit count: 338

Filed under:
|
|
|

I would like the rows of my GridView to have strikethrough based on a bound data value called IsObsolete. I tried to do this:

<RowStyle BackColor="#EFF3FB" Font-Strikeout='<%# Bind('IsObsolete') %>' />

But obviously this doesn't parse. I'd rather not do this in GridView.DataBound(). Any other ideas?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview