有没有办法让GridView的Header 或Footer中的某些单元格合并? RT. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以的,可以参考http://dotnet.aspx.cc/article/01c21aa8-7de7-4c5d-ab0c-4736e259b773/read.aspx 可以的,,在 RowCreated 时间里面去做TableCellCollection tcHeader = e.Row.Cells; tcHeader.Clear(); tcHeader.Add(new TableHeaderCell()); tcHeader[0].Attributes.Add("rowspan", "3"); //跨Row tcHeader[0].Attributes.Add("bgcolor", "white"); tcHeader[0].Text = ""; tcHeader.Add(new TableHeaderCell()); //tcHeader[1].Attributes.Add("bgcolor", "Red"); tcHeader[1].Attributes.Add("colspan", "6"); //跨Column tcHeader[1].Text = "全部信息</th></tr><tr>"; 控件的visible属性没用 求高手指点下关于网址的问题 我在asp.net做的三层bll逻辑层里调用webservice,结果引用完之后在代码声明居然声明不了 急~~~急,在线等!~~~~~~~~~~~~~~~~~~~~~~~~~~ autopostback 建表的一些权限问题 datagrid 中 编辑、更新、取消 列更新时,怎么不引起同一个页面的其他的验证? 如何解决乱码的问题? 各位,有谁能给我说说为什么B/S要比C/S架构难维护?面试问题啊! ASP.NET显示问题。。。。烦!!!!!!!!!!!!! 模态窗口问题求助 请问string[,]和string[][]的区别?
http://dotnet.aspx.cc/article/01c21aa8-7de7-4c5d-ab0c-4736e259b773/read.aspx
TableCellCollection tcHeader = e.Row.Cells;
tcHeader.Clear();
tcHeader.Add(new TableHeaderCell());
tcHeader[0].Attributes.Add("rowspan", "3"); //跨Row
tcHeader[0].Attributes.Add("bgcolor", "white");
tcHeader[0].Text = "";
tcHeader.Add(new TableHeaderCell());
//tcHeader[1].Attributes.Add("bgcolor", "Red");
tcHeader[1].Attributes.Add("colspan", "6"); //跨Column
tcHeader[1].Text = "全部信息</th></tr><tr>";