摘要:
现在在网上基本上有两种方法实现winform多表头。一种是将winform表头重画,代码如下:privatevoidDataGridViewEx_CellPainting(objectsender,DataGridViewCellPaintingEventArgse){if(e.RowIndex==-1){//intw=dataGridView1.HorizontalScrollingOffset+dataGridView1.TopLeftHeaderCell.Size.Width+dataGridView1.Columns[0].Width+10;RectanglenewRect=newRe 阅读全文