Private Sub AutoNumberRowsForGridView() ' membuat no otomatis pada datagridview
If DG IsNot Nothing Then
Dim count As Integer = 0
While (count <= (DG.Rows.Count - 2))
DG.Rows(count).HeaderCell.Value = String.Format((count + 1).ToString(), "0")
count += 1
End While
Related Posts: