
03-31-2012, 09:49 AM
|
|
Newcomer
|
|
Join Date: Mar 2012
Posts: 1
|
|
Datagridview changes do not update to database
|
Hi out there,
i need your help.
I have an application doing the following:
- Treeview with customers
- on clicking a treeview, for every project of this customer, a new MDIchild opens, where the products of this project are displayed
- the MDIchild is basically a DataGridView, which is connected to the products-table via a DataView
my Problem comes after changing a value in the products DataGridView:
- if i do not change the row, the changes will not go back to the database after an update
- if i do change the row after entering a new value, everything works fine
The strange thing is, that in both cases, the value in the DataTable is changed, the DataSet is "hasChanges=True" and the DataRow's state is "Modified".
I have tried to do DGV.EndEdit and .ClearSelection to somehow force him to take the changes. But still the same problem.
Hope, that anybody has a good idea...
Thanks in advance
many greetings from Germany
Matthias
|
|