อันนี้เป็นโค๋ตตอนใส่ลำดับ
Private Sub Grid_ClassRoom_RowPostPaint(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewRowPostPaintEventArgs) Handles Grid_ClassRoom.RowPostPaint
Using b As SolidBrush = New SolidBrush(Me.Grid_ClassRoom.RowHeadersDefaultCellStyle.ForeColor)
e.Graphics.DrawString((e.RowIndex + 1).ToString(System.Globalization.CultureInfo.CurrentUICulture), _
Me.Grid_ClassRoom.DefaultCellStyle.Font, _
b, e.RowBounds.Location.X + 5, _
e.RowBounds.Location.Y + 5)
End Using
End Sub