Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all
I have taken Product Cost is numeric datatype in sqlserver
in fornt(C#) end value is displayed like dis 1000.00

but i want format like dis 1,000

so any one could you help me plz........
Posted

1 solution

http://www.csharp-examples.net/string-format-double/[^]
http://stackoverflow.com/questions/752145/use-a-custom-thousand-separator-in-c[^]

or in case you want in 1,00,00,000 instead of 10,000,000 for 1000000. Then you can try string.format("{0:##,##,##,###.##}", MyNumber)
 
Share this answer
 
v2

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