Click here to Skip to main content
15,888,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

actually i had created the button(delete) in the datagridview in C#.net windows application , my requirement is that when the user clicks on the button in the delete in datagridview then that corresponding data should be deleted from the access 2007 , plz
send the information ,
Posted
Updated 21-Jul-10 5:54am
v2

1 solution

Try this:
1. On button click event, trap it and get the row that was triggered to be deleted.
2. Based on the row, get the unique Id of the row that can be used to delete the row from DB
3. Pass on the unique ID to the DB layer and then to the query for deleting the record from DB
4. Execute the query

Done! Now try first. Don't wait for exact code.
 
Share this answer
 
Comments
[no name] 21-Jul-10 10:58am    
mainly i am not waiting for the exact code but my problem is how to rise a button click event for the button that was presented in the datagridview

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