Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to delete row from data grid view,that deleted record should not be in database also
Posted
Updated 27-May-17 0:12am

You're getting this error because your table doesn't have a primary key. Without that, you cannot use the designers or automated classes, like the SqlCommandBuilder class.

Frankly, if you've got a table without a primary key, you better have a good reason for it, and it better not be "I don't need one."
 
Share this answer
 
Comments
Sandeep Mewara 16-Feb-11 1:25am    
Oh! I see you already answered it.

5! from me.
Similar question asked and discussed here itself few times. One such instance: SQL problem in saving [SOLVED][^]

Further Google has lots of links[^] for the same error.
 
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