Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #row #datagridview #programmatically
ADD COMMENT
Topic
Name
7+5 =