本方法仅仅适用于使用.net内置的方法将页面GridView导出Excel时的情况。只要在GridView中的单元格上

添加下面一句代码即可。这样类似身份证的长数字就不会“被”科学计数了。

e.Row.Cells[4].Attributes.Add("style", "vnd.ms-excel.numberformat:@;");

相关文章:

  • 2021-12-02
  • 2022-03-06
  • 2022-01-07
  • 2022-12-23
  • 2021-08-07
猜你喜欢
  • 2021-06-23
  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
  • 2022-12-23
  • 2022-02-02
相关资源
相似解决方案