摘要: 直接代码: publicstaticvoidExportExcel(GridViewgv,HttpContextcontext){gv.HeaderStyle.BackColor=System.Drawing.Color.FromArgb(255,255,0);//rgb(243,243,243)for(inti=0;i<gv.Rows.Count;i++){for(intj=0;j<gv.Rows[i].Cells.Count;j++){gv.Rows[i].Cells[j].Attributes.Add("style","vnd.ms-excel. 阅读全文
posted @ 2012-08-27 15:04 IT-民工 阅读(122) 评论(0) 推荐(0)