Excel工作表在VS Windows应用程序中上载 [英] Excel sheet Upload in VS windows application
本文介绍了Excel工作表在VS Windows应用程序中上载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我在我的Windows应用程序中上传了一个excel,但是我的问题是在一列中,值是1234.8但是我想要显示为1234.80我该怎么做才能帮助我
这里excel中的列是通用格式,我在GridView上加载它现在我的意图是修改GridView中的特定列,所以它应该在十进制后显示2位数
谢谢和问候
Indrajit dasgupta
Hi All
I uploading an excel in my windows application but my question is in one column values are like 1234.8 but I want to show like 1234.80 how can I make this please help me
Here the column in the excel is general format and I loaded it on GridView now my Intention is modify the particular column in GridView so it should display 2 digit after decimal
Thanks & regards
Indrajit dasgupta
推荐答案
< asp:boundfield datafield = YourColumndataformatstring ={0:#。##}/>
我认为这是你需要的
<asp:boundfield datafield="YourColumn" dataformatstring="{0:#.##}" />
I think it is what you need
这篇关于Excel工作表在VS Windows应用程序中上载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文