Private Sub DataGridView1_CellEndEdit(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
'เขียนเงื่อนไข update ตามใจชอบ
Dim SQL = "UPDATE [TABLENAME] SET [COLUMN1] ='" & DataGridView1.Rows(e.RowIndex).Cells(0).Value & " ' "
End Sub