C# datagridview databound number display format for 10,000,000 value

100 Views Asked by At

Hi guy I don't know how to format display value in gridview with databound to MYSQL database right now my total column display 10,000,000 value as "1E + 07" But I want to show it as 10,000,000 so how to do that

1

There are 1 best solutions below

0
israel altar On

you can do it as follows:

value = 10000000;
string whereverYouNeedToAssignIt = value.ToString("0,0", CultureInfo.InvariantCulture));    

and you'll get 10,000,000