徐胜利

导航

2012年9月12日 #

为DataGridView添加行号

摘要: 一,为DataGridView添加RowPostPaint事件二,为该事件添加如下代码private void dgvShow_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e){Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, this.dgvShow.RowHeadersWidth - 4, e.RowBounds.Height); TextRenderer.Dra... 阅读全文

posted @ 2012-09-12 19:19 xuvictory 阅读(208) 评论(0) 推荐(0)