Click here to Skip to main content
15,915,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one sql table without any primary key because admission no. will be repeated..
In same table one field with property BIT (means true or false)
I create a new dataset with this table using Create New Data Source....
I drag that table into a new form.. like a gridview... Now when Tick on bit coloumn and try to save
it gives me following error:

Update requires a valid UpdateCommand when passed DataRow collection with modified rows.

please help....
Posted
Comments
Ziee-M 5-Nov-13 9:49am    
not really related with the question, but i stronly recomand using an ORM such as EntityFrameWork, totaly worth it. and you will no longer use datasets and datatables !

did you keep blank input? If you keep empty any of coloumn then these type messages shows.

Use try catch to don't shows these error messages
 
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