browsing through the forums, i see numerous posts mentioning this method as well. however, using the final release now, no formatting is applied, and i haven't changed my format string. i can only assume the syntax changed with the final release, and i haven't
been able to find the new syntax for formatting a currency value in the visual studio help files, though admittedly my knowledge of finding information i need there is sorely lacking.
would someone be kind enough to tell me the new syntax (or explain what i'm doing wrong)?
bttrflii
Member
590 Points
132 Posts
format currency in gridview boundfield
Nov 11, 2005 04:47 PM|LINK
<asp:BoundField ItemStyle-CssClass="t-cost" DataField="ServiceCost" DataFormatString="{0:c}" />
browsing through the forums, i see numerous posts mentioning this method as well. however, using the final release now, no formatting is applied, and i haven't changed my format string. i can only assume the syntax changed with the final release, and i haven't been able to find the new syntax for formatting a currency value in the visual studio help files, though admittedly my knowledge of finding information i need there is sorely lacking.
would someone be kind enough to tell me the new syntax (or explain what i'm doing wrong)?
thank you,
cj
joteke
All-Star
46284 Points
6896 Posts
ASPInsiders
MVP
Re: format currency in gridview boundfield
Nov 11, 2005 04:50 PM|LINK
<asp:BoundField ItemStyle-CssClass="t-cost" DataField="ServiceCost" DataFormatString="{0:c}" HtmlEncode="False" />
Does that help?
Teemu Keiski
Finland, EU
bttrflii
Member
590 Points
132 Posts
Re: format currency in gridview boundfield
Nov 11, 2005 05:24 PM|LINK
thanks joteke!