Dim b As SolidBrush = New SolidBrush(DataGridView1.RowHeadersDefaultCellStyle.ForeColor)
Dim linen As Integer = 0
linen = e.RowIndex + 1
Dim line As String = linen.ToString()
e.Graphics.DrawString(line, e.InheritedRowStyle.Font, b, e.RowBounds.Location.X, e.RowBounds.Location.Y + 5)
Dim linen As Integer = 0
linen = e.RowIndex + 1
Dim line As String = linen.ToString()
e.Graphics.DrawString(line, e.InheritedRowStyle.Font, b, e.RowBounds.Location.X, e.RowBounds.Location.Y + 5)