![](/img/trans.png)
[英]How to get rid of time when export datagridview into excel file VB.NET
[英]how To Get rid of Exponential format in datagridview when the number is very large
當數字非常大時(例如:290754232),我得到了2.907542E +08。 在datagridview單元中
我使用的是vb.net,框架2.0。
如何擺脫這種格式?
提前致謝
為包含大量數字的列設置默認格式,如下所示:
myDataGridView.Columns("My Column").DefaultCellStyle.Format = "D"
如果要逗號(例如290,754,232),請使用“ N”代替“ D”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.