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

猜你喜欢

转载自blog.csdn.net/farmwang/article/details/80848461