Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two Master/child tables. i have bounded them on form by bindingsource. it is working ok. i can add new record in both tables. But when i try to edit/delete child record, on the form, it is done but when try to update database, it gives error "Update requires a valid UpdateCommand when passed DataRow collection with modified rows"

is there any special Update command we have to set ?

Please guide ...
Posted
v2
Comments
How do you update it?
Peter Leow 22-Feb-14 1:31am    
Add code to your question.

1 solution

i got the solution. Actually in my Child table, there was no primary key, due that auto command was not generated in dataadaptar property. I set primary key to a field then again reconfigure, it is done and working ok.

ThX
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900