摘要: WindowsFormsDataGridView没有提供合并单元格的功能,要实现合并单元格的功能就要在CellPainting事件中使用Graphics.DrawLine和Graphics.DrawString自己来“画”。下面的代码可以对DataGridView第1列内容相同的单元格进行合并:privatevoiddataGridView1_CellPainting(ob... 阅读全文
posted @ 2007-09-16 09:07 WUYQ 阅读(331) 评论(1) 推荐(0) 编辑
摘要: 1、自定义列 Customize Cells and Columns in the Windows Forms DataGridView Control by Extending Their Behavior and Appearance Host Controls in Windows Forms DataGridView Cells 继承 DataGridViewTextBoxCell... 阅读全文
posted @ 2007-09-16 08:59 WUYQ 阅读(873) 评论(0) 推荐(0) 编辑