bhavin12300
Active member
- Joined
- Sep 18, 2007
- Messages
- 44
- Programming Experience
- Beginner
i am trying to update database with updated data in data adapter.
error message.
here is my code.i get this error when i try to update dataadapter with following line.
here is code to load dataadapter as well as datagrideview.
error message.
"Update requires a valid UpdateCommand when passed DataRow collection with modified rows."
here is my code.i get this error when i try to update dataadapter with following line.
VB.NET:
da.Update(ds2)
VB.NET:
Dim da As OleDb.OleDbDataAdapter
Dim ds2 As New DataTable
ds2.Clear()
da = New OleDb.OleDbDataAdapter("select * from tabel_user", myConnection)
da.Fill(ds2)
DataGridView1.DataSource = ds2