Datagrid formatting: TemplateColumn, ItemStyle, ItemTemplate won't accept DataFormatString

N

.Net Sports

I'm trying to display a figure in my datagrid as a currency ($100.00),
but I can't use DataFormatString inside templatecolumn, itemstyle, or
itemtemplate (as they imply that no attribute named DataFormatString is
available for them). But I can use DataFormatString in BoundColumn.
Wondering how I would use TemplateColumn, ItemStyle, or ItemTemplate to
format a displayable field to currency/price {0:C}
Thanks in advance
NetSports
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top