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种文本格式 原创】相关文章:
★ c# 调用WinRAR 实现文件压缩、文件解压WinRAR命令行参数不弹窗
上一篇:
全面剖析.Net环境下的缓存技术