摘要:
privatevoiddataGridView1_RowPostPaint(objectsender,DataGridViewRowPostPaintEventArgse)2{3vardgv=(DataGridView)sender;4if(dgv.RowHeadersVisible)5{6Rectanglerect=newRectangle(e.RowBounds.Left,e.RowBounds.Top,7dgv.RowHeadersWidth,e.RowBounds.Height);8rect.Inflate(-2,-2);9TextRenderer.DrawText(e.Graphic 阅读全文