0

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.