I am formatting a gridview templatefield that is databound with{0:c} and it displays currency as such:
$790.00
Is there a way to adjust it so the dollar symbol isn't displayed?
I am formatting a gridview templatefield that is databound with{0:c} and it displays currency as such:
$790.00
Is there a way to adjust it so the dollar symbol isn't displayed?
You simply need to change your format specifier to 'f'. Here's an example:
Output
Shame on you for not looking this up :D
See this article for details on numeric formatting: Standard Numeric Format Strings