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
Vilas GitePosted May 30, 2011, 7:44 AM
RanPosted May 30, 2011, 7:40 AM
Thank you All. It has been done. :-)
Vilas GitePosted May 30, 2011, 7:15 AM
Please refer one another great!
http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/gridview-multiple-delete-with-checkbox-and-confirm.aspx
vijayPosted May 30, 2011, 6:56 AM
http://vbdotnetaddict.blogspot.com/2011/02/groid-view-load-and-update-sql-data.html
Posted May 30, 2011, 6:56 AM
http://www.c-sharpcorner.com/UploadFile/jayendra/108142009005216AM/1.aspx
http://csharpdotnetfreak.blogspot.com/2009/04/delete-multiple-rows-gridview-checkbox.html
Vilas GitePosted May 30, 2011, 6:49 AM
http://www.dotnetfunda.com/articles/article29.aspx
Posted May 30, 2011, 6:47 AM
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.