Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all

Just writing a program in Vs c++ and stuck on a problem what I want to do is select row from data grid view and then on button press delete the row in mysql .Can select row not a problem the problem is how I would Pass Data From data grid to button if you need code sample let me know

Regards
Posted

how I would Pass Data From data grid to button
You would not. You already know which row has been selected, so you just need to pass the details to the record delete section of your data access layer, or whatever code manages your datatables.
 
Share this answer
 
you can write function OnSelectChange ,inside select Just Update the Date and call Sp to delete the Row in sql server.and at the exit again update the date ......
 
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