DataGridView绘制序号

1、找到RowPostPaint事件

2、写入事件


/// <summary>
/// 绘制序号
/// </summary>
private void dgvStatementLog_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
  WinBasicLayout wbl = new WinBasicLayout();
wbl.SetDataGridViewNum(sender, e);
}

posted on 2014-08-05 13:57  谢东法  阅读(214)  评论(0编辑  收藏  举报