Formatting Strings in a GridView Cell

Posted by Coesy on Stack Overflow See other posts from Stack Overflow or by Coesy
Published on 2010-05-19T09:09:28Z Indexed on 2010/05/19 9:10 UTC
Read the original article Hit count: 223

I pass text in a gridview cell with a pipe delimiter, for example "4|31.99|3", What I'd like to be able to do is format this text to show as

 -------------
 |     4     |
 |£31.99 / 3%|
 -------------

As you can see, I need the 4 to be Bold and be on a line of it's own, the 31.99 to be a currency and the 3 to be a percentage. Can this be done in code-behind using a converter or something?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about gridview