Hi All,
I've an application where i used gridview to display data from the database. I added a column which is a checkbox(template field) and i've a button. When the button is clicked, all the rows in the gridview whose checkbox is checked should be deleted. How can this be done? can anyone help me?
Loading

Posted May 30, 2011, 2:47 AM EDT
Step 2: While iterating the rows, do findcontrol, identify the checkbox. If the check box value is selected then you can remove the record from the datasource fo the gridview . In the sametime you can delete the records from Db also.
hope this helps you.
Vilas GiteRank #951 · 2.1K reputationPosted May 30, 2011, 2:49 AM EDT
http://www.dotnetfunda.com/articles/article29.aspx
Posted May 30, 2011, 2:56 AM EDT
http://www.c-sharpcorner.com/UploadFile/jayendra/108142009005216AM/1.aspx
http://csharpdotnetfreak.blogspot.com/2009/04/delete-multiple-rows-gridview-checkbox.html
vijay172 reputationPosted May 30, 2011, 2:56 AM EDT
http://vbdotnetaddict.blogspot.com/2011/02/groid-view-load-and-update-sql-data.html
Vilas GiteRank #951 · 2.1K reputationPosted May 30, 2011, 3:15 AM EDT
Please refer one another great!
http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/gridview-multiple-delete-with-checkbox-and-confirm.aspx
Ran22 reputationPosted May 30, 2011, 3:40 AM EDT
Thank you All. It has been done. :-)
Vilas GiteRank #951 · 2.1K reputationPosted May 30, 2011, 3:44 AM EDT