vb.net add row to datagridview programmatically code example
Example: vb.net add row to datagridview programmatically
Private Sub SurroundingSub()
Dim rowId As Integer = dataGridView1.Rows.Add()
Dim row As DataGridViewRow = dataGridView1.Rows(rowId)
row.Cells("Column1").Value = "Value1"
row.Cells("Column2").Value = "Value2"
End Sub