Click here to Skip to main content
15,356,705 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
it Dosent Showing any $ symbol
cultural on my machine is en-US

What I have tried:

<asp:BoundField DataField="AnnualSalary" HeaderText="AnnualSalary" SortExpression="AnnualSalary"
HtmlEncode="False" DataFormatString="{0:c}" />
Updated 15-Oct-16 1:53am

1 solution

Try adding following to your Page attribute-
UICulture="en-US" Culture="en-US"

or at web.config level, you can add following inside system.web section-
<globalization uiculture="en-US" culture="en-US"></globalization>

Hope, it helps :)
paul_vin 18-Oct-16 8:07am
Suvendu Shekhar Giri 18-Oct-16 9:00am
Glad that it helped :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900