referesh datagridview after database update in vb.net
- by Gbolahan
Dim myQuery = "UPDATE table1 SET data= CONCAT (data,'" & vbCrLf & "[ " & Date.Now() & " ]" & " " & "[" & getCN() & "]" & " " & txtTelenotes.Text & "[ item1 ]" & "') WHERE id='" & txtID.Text & "'"
myCommand.Connection = conn
myCommand.CommandText = myQuery
myAdapter.SelectCommand = myCommand
Dim myData As MySqlDataReader
myData = myCommand.ExecuteReader()
txtTelenotes.Text = ""
dgvREcord.Refresh()
tried refreshing the datagridview using
dgvREcord.Refresh()
but it does not load the changes form the database.
Any help Pls..
Thanks.