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

    技术2022-05-20  33

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


    最新回复(0)