Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir i had table which had a composite key.i have connected this table to windos form using ado.net.now i want to add a button to delete a record.how can i write the code to that button to del a row.pl ans me
Posted

1 solution

1. What is the role of Composite Key here? Why did you used here in question?
2. What is the issue that you face while trying it?

It's a simple ADO.NET delete from database. If you have read of ADO.NET delete code then this should be easy for you. Just write it as you would for a normal case. Change the query of delete based the key or condition(s) you want to.
 
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