我创建了一个DataGrid。我不知道如何合并行标题单元格
我希望输出如下,
....................................................................
............|.....1.....|.......2.....|.....3......|....4....|......
| |...........|.............|............|.........|......
| MON |...........|.............|............|.........|......
|...........|...........|.............|............|.........|......
| |...........|.............|............|.........|......
| TUE |...........|.............|............|.........|......
|...........|...........|.............|............|.........|......
| |...........|.............|............|.........|......
| WEDS |...........|.............|............|.........|......
|...........|...........|.............|............|.........|......
| |...........|.............|............|.........|......
| THU |...........|.............|............|.........|......
|...........|...........|.............|............|.........|......
答案 0 :(得分:0)
您无法直接合并普通DataGridView
的单元格。
我建议切换到另一种类型的对象(有一些允许这样的开源网格),否则你将不得不处理'CellPainting'
DataGridView
事件
如果您选择第二个选项,请检查以下内容:
http://social.msdn.microsoft.com/forums/en-US/vbinterop/thread/5b659cbd-7d29-4da4-8b38-5d427c3762e2/
但正如您所看到的,此解决方案并不干净。