Clamont
Clamont

Reputation: 11

Databound Grid, Adding a new row

I am trying to add a new row to a databound grid view. Here is the code that sets up the grid view which works fine.

Private Sub displayCodes()
    SqlTxt = "SELECT cos_code, cos_hazardstatement FROM coshhCodes;"
    Dim dtb As New DataTable()
    Dim dad As New SqlDataAdapter(SqlTxt, DBCon)
    dad.Fill(dtb)
    avaData.DataSource = dtb
End Sub

The question is how do i add another row using vb.net. Many examples are using C or are very old. I need a solution using vb.net

Upvotes: 0

Views: 7

Answers (0)

Related Questions