formated numbers on dataGridView
-
Sunday, April 15, 2012 8:25 AM
hi
i have in my WinForm C# program dataGridView.
i have column that holds numbers.
0.6 i see .6
-9 i see 9-
how i can fix it ?
All Replies
-
Sunday, April 15, 2012 9:15 AM
What culture settings are you using?
To fix the first example, you can use a Custom Numeric Format...
http://msdn.microsoft.com/en-us/library/0c899ak8.aspx
Zach Stagers - http://www.scratchbox.co.uk
- Proposed As Answer by Kris Anderson Tuesday, April 17, 2012 1:53 AM
- Marked As Answer by Bob ShenMicrosoft Contingent Staff, Moderator Wednesday, April 25, 2012 4:57 AM
-
Monday, April 16, 2012 5:18 AM
If you are using local culture, then may be the number format is set like that (see beow image).
Please mark this post as answer if it solved your problem. Happy Programming!
- Proposed As Answer by Kris Anderson Tuesday, April 17, 2012 1:53 AM
- Marked As Answer by Bob ShenMicrosoft Contingent Staff, Moderator Wednesday, April 25, 2012 4:57 AM

