手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >GridView导出Excel常见的5种文本格式 原创
GridView导出Excel常见的5种文本格式 原创
摘要:1)文本:vnd.ms-excel.numberformat:@2)日期:vnd.ms-excel.numberformat:yyyy/mm...

1) 文本:vnd.ms-excel.numberformat:@

2) 日期:vnd.ms-excel.numberformat:yyyy/mm/dd

3) 数字:vnd.ms-excel.numberformat:#,##0.00

4) 货币:vnd.ms-excel.numberformat:¥#,##0.00

5) 百分比:vnd.ms-excel.numberformat: #0.00%

用法:在GridView的RowDataBound事件中加入代码e.Row.Cells[0].Attributes.Add("style", "vnd.ms-excel.numberformat:@");

【GridView导出Excel常见的5种文本格式 原创】相关文章:

iis的http 500内部服务器错误的解决

ASP.NET中使用Application对象实现简单在线人数统计功能

ASP.NET 绑定DataSet中的多个表

.NET读取所有目录下文件正则匹配文本电子邮件

asp.net后台弹窗如何实现

ASP.NET中集成百度编辑器UEditor

asp.net(c#)利用构造器链的代码

GridView单元格合并

asp.net实现文件无刷新上传方法汇总

ASP.NET中为GridView添加删除提示框的方法

精品推荐
分类导航