您当前的位置: 首页 > 

[GDI]DataGridView的序号

发布时间:2010-11-19 22:18:00 ,浏览量:0

private void datagv_det_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
 {
SolidBrush b = new SolidBrush(this.datagv_det.RowHeadersDefaultCellStyle.ForeColor);
  e.Graphics.DrawString((e.RowIndex + 1).ToString(System.Globalization.CultureInfo.CurrentUICulture),     this.datagv_det.DefaultCellStyle.Font, b, e.RowBoun  ds.Location.X + 20, e.RowBounds.Location.Y + 4);
}

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    106485博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0499s