想把datagridview 表头标题合并,使中间的border不可见,怎么实现这种效果,谢谢!
------解决方案--------------------------------------------------------
if (e.Row.RowType == DataControlRowType.Header) { e.Row.Cells[0].ColumnSpan = 2; e.Row.Cells[0].Text += e.Row.Cells[1].Text; e.Row.Cells.RemoveAt(1); }
------解决方案--------------------------------------------------------
UP