摘要: 现在在网上基本上有两种方法实现winform多表头。一种是将winform表头重画,代码如下:privatevoidDataGridViewEx_CellPainting(objectsender,DataGridViewCellPaintingEventArgse){if(e.RowIndex==-1){//intw=dataGridView1.HorizontalScrollingOffset+dataGridView1.TopLeftHeaderCell.Size.Width+dataGridView1.Columns[0].Width+10;RectanglenewRect=newRe 阅读全文
posted @ 2011-09-07 13:23 永远没有尽头 阅读(1941) 评论(2) 推荐(0) 编辑