- private void w_Dgv_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
- {
- // Add row numbers
- // Taken from "Pro C# 2008 and The .NET 3.5 Platform" pp. 807-808
- {
- e.Graphics.DrawString((e.RowIndex).ToString(),
- e.InheritedRowStyle.Font, brush, e.RowBounds.Location.X + 15,
- e.RowBounds.Location.Y + 4
- );
- }
- }
No comments:
Post a Comment