简体   繁体   中英

how To Get rid of Exponential format in datagridview when the number is very large

When the number is very large like :290754232, I got 2.907542E +08. in datagridview cell

I using vb.net , framework 2.0.

how can I get rid of this format?

Thanks in advance

Set the default format for the column containing the large number like this:

myDataGridView.Columns("My Column").DefaultCellStyle.Format = "D"

If you want commas (eg 290,754,232) use "N" instead of "D"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM