I don't think there is a built in option for it but you can do it like this:
VB.Net Code:
Private Sub DataGridView1_RowPostPaint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewRowPostPaintEventArgs) Handles DataGridView1.RowPostPaint e.Graphics.DrawString(e.RowIndex + 1, DataGridView1.Font, Brushes.Black, e.RowBounds.X + 15, e.RowBounds.Y + 5) End Sub




Reply With Quote
