Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, dataGridViewX1.RowHeadersWidth - 4, e.RowBounds.Height);
            TextRenderer.DrawText(e.Graphics, (e.RowIndex + 1).ToString(), dataGridViewX1.RowHeadersDefaultCellStyle.Font, rectangle, dataGridViewX1.RowHeadersDefaultCellStyle.ForeColor, TextFormatFlags.VerticalCenter | TextFormatFlags.Right);

相关文章:

  • 2021-06-11
  • 2021-08-16
  • 2022-01-16
  • 2021-05-30
  • 2022-03-03
猜你喜欢
  • 2022-01-07
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案