小问题,在 DataGrid 中要实现 列头的合并功能,参考下面的图。 参考http://sz.luohuedu.net/xml/ShowDetail.asp?id=0BF1E82C-A30A-4B5B-85B2-8DB339A41D37 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在ItemCreated事件中switch(e.Item.ItemType) { case ListItemType.Header: e.Item.Cells[0].RowSpan = 2; e.Item.Cells[1].RowSpan = 2; e.Item.Cells[2].ColumnSpan = 2; e.Item.Cells[2].Text = "姓名"; e.Item.Cells.RemoveAt(3); e.Item.Cells[3].RowSpan = 2; e.Item.Cells[3].Text = "2003年度 </td></tr><tr><td nowrap=\"nowrap\" align=\"Center\" style=\"font-weight:bold;\">2月</td><td nowrap=\"nowrap\" align=\"Center\" style=\"font-weight:bold;\">3月"; break; }自己参考 数组数据重复问题 从oracle导出数据到sqlite方案 得到局域网内的计算机ip和计算机名 .net 2.0 新增加的压缩类 问一个有关WindowMessage,NamedPipe的问题200分伺候 请教关于毕业户口的问题 请问怎样算出两个datatime之间间隔了多少天? 使用VS2005自动生成的单元测试代码进行测试,为什么无法给对象的枚举类型的属性赋值? 如何取得字段的长度? 如何将某一类型的文件和一个执行文件关联起来? 关于:互联网广告系统. 顶者有分~!~~~~~~~~~~ 求一正则表达式,顶者有分。
switch(e.Item.ItemType)
{
case ListItemType.Header:
e.Item.Cells[0].RowSpan = 2;
e.Item.Cells[1].RowSpan = 2;
e.Item.Cells[2].ColumnSpan = 2;
e.Item.Cells[2].Text = "姓名";
e.Item.Cells.RemoveAt(3);
e.Item.Cells[3].RowSpan = 2;
e.Item.Cells[3].Text = "2003年度 </td></tr><tr><td nowrap=\"nowrap\" align=\"Center\" style=\"font-weight:bold;\">2月</td><td nowrap=\"nowrap\" align=\"Center\" style=\"font-weight:bold;\">3月";
break;
}自己参考