jonson1126
各种问题 各种方法 各种解决 路要自己走一遍才知个中滋味
摘要: /// /// 合并GridView列中相同的行 /// /// GridView对象 /// 需要合并的列数 public static void GroupRows(GridView GridView1, int cellNum) { int i = 0, rowSpanNum = 1; while (i < GridView1.Rows.Count - 1) { GridViewRow gvr = GridView1.Rows[i]; ... 阅读全文
posted @ 2013-06-24 15:40 jonson1126 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1,现在,GridView中已经绑定了数据,接下来的任务就是导出到Excel。下面是button事件中的代码Response.ClearContent();Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls");Response.ContentType = "application/excel";StringWriter sw = new StringWriter();HtmlTextWriter htw = new HtmlT 阅读全文
posted @ 2013-06-24 11:26 jonson1126 阅读(203) 评论(0) 推荐(0) 编辑