Hi chrissie1,
Thank you for your help. I think you're right that I must
create a stored procedure or SQL code to make it works. But I am stuck on that. Here I have so far. Please take a look a code below so you can see why it does not update in my table.
Dim dsItems As New Service1
Dim ds As DataSet
Dim myCommand As SqlCeCommand
ds = dsItems.ItemList()
Me.DataGrid1.DataSource = ds.Tables(0)
Me.DataGrid1.Refresh()
Dim myConn As New SqlCeConnection(ConnString)
Dim myDataAdapter As New SqlCeDataAdapter
myDataAdapter.SelectCommand = New SqlCeCommand("SELECT *
from Items", myConn)
Dim cb As SqlCeCommandBuilder = New SqlCeCommandBuilder(myDataAdapter)
myConn.Open()
myDataAdapter.Fill(ds, "Items")
myDataAdapter.Update(ds, "Items")
ds.AcceptChanges()
myConn.Close()
Thank you.