Sign in | Join
Last post 06-08-2009 1:47 AM by Samu Zhang - MSFT. 4 replies.
Sort Posts: Oldest to newest Newest to oldest
Hello Eevey One
I have a new problem in my DridView, I got a field in data base Price (money) as 100.0000, Show i want change in my grid view like $100, 100 EURO and 100 Rs Depend on Define Fromat.
Can any body know how to change it
Change text of your cells on RowDataBound as:
e.Cells(2).Text = Convert.ToDecimal(e.Cells(2).Text).ToString("c")
You need to change the Money symbol for each language same as you want to show in page.
U r right, it will work but i want change it like $100.00, and dollor setting come from my database
Hi
For that u want to have one more table in ur database as currency value corresponding value for eg:- for us$ : according to todays value u want to show ,
whether like this r some other u are asking about
Hi kkprakashmsc ,
The output for the above Web page would be:
$4.56