How to save changes from DataGridView to the database?
问题 I would like to save the changes made to a DataGridView into the database MS SQL CE, but i can't, the changes are not saved to the database.... This the code (VB.net): Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) handles MyBase.Load Dim con As SqlCeConnection = New SqlCeConnection(@"Data Source=C:\Users\utente\Documents\test.sdf") Dim cmd As SqlCeCommand = New SqlCeCommand("SELECT * FROM mytable", con) con.Open() myDA = New SqlCeDataAdapter(cmd) Dim