您的位置:首页 > 其它

GridView导出excel出现科学计数的解决办法

2011-03-02 14:30 323 查看
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[6].Attributes.Add("style", "vnd.ms-excel.numberformat:@");
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: