![]() |
Deleting from GridView using checkbox selections (C#)
I have a gridview (just called GridView1) containing a selection of tasks that the user can add to and edit etc. I've added in checkboxes so that the user can select multiple rows at once and the hope is that they can then click on a button to delete those rows.
I picked up some code on the internet that allows me to go through the check boxes, see which ones are checked and then return to a label which tasks would be deleted. It didn't provide the code for actually deleting them however and i havent been able to find out how to do it, so i was hoping someone could help me. My code is below: Code:
Any help would be greatly appreciated |
Re: Deleting from GridView using checkbox selections (C#)
Nice try and very interesting topic you can use code:
Code:
Using System.Data.SqlClient; |
| All times are GMT +5.5. The time now is 08:11. |