解决方法:
在RowDataBound中
e.Row.Cells[0].Attributes.Add("style","mso-number-format:'//@'");
本文介绍了一种在RowDataBound事件中为表格单元格设置特定样式的解决方法,通过使用Attributes.Add方法添加自定义样式属性,实现对单元格格式的精确控制。
解决方法:
在RowDataBound中
e.Row.Cells[0].Attributes.Add("style","mso-number-format:'//@'");

被折叠的 条评论
为什么被折叠?