I m new in VB. I want to update my database when I make any change in dataGridView. Can anyone give me details about this? the scenario is I will change value from datagridview and after I click update button I should change the database value.code is
Private Sub btnModify_Click(sender As Object, e As EventArgs) Handles btnModify.Click
Dim cmdbuilder As New Odbc.OdbcCommandBuilder(da)
ds = gridDisplay(cmbxState.SelectedItem)
Try
da.Update(ds.Tables("districtMaster"))
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub