C# 导出Excel 产生科学计数法问题的解决办法

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:@");  
        }  
    }  

文章转载:http://blog.sina.com.cn/s/blog_6d4015a00100q054.html

 

<td style='vnd.ms-excel.numberformat:@;'>991703190006184242</td>

posted @ 2015-07-30 17:55  linyongqin  阅读(1825)  评论(0编辑  收藏  举报