gridview表头合并资料.doc

网上找了个找,最终还是自己做的比较靠谱,道理很简单,直接看代码 代码: 1 /// summary 2 /// =================== 两行标题行 ======================== 3 /// /summary 4 /// param name=sender/param 5 /// param name=e/param 6 protected void GV1_RowCreated(object sender, GridViewRowEventArgs e) 7 { 8 if (e.Row.RowType == DataControlRowType.Header) 9 { 10 e.Row.Cells.Clear(); 11 string[] capText = { ID, 材料名称, 规格型号, 计量单位, 入库数量, 点验, 发料, 库存, 合同 }; 12 int[] capWidth = { 50, 0, 0, 0, 70, 150, 150, 150, 150 }; 13 int[] capRowSpan = { 2, 2, 2, 2

文档评论(0)

1亿VIP精品文档

相关文档