The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Deleting Multiple Records for DataGrid using Checkboxes...!!!

Hello,

I want to delete multiple record using checkboxes from my datagrid using c# asp.net , what should i do, are there any script and all to delete the record, i am not getting the exact solution to do this work, can any body suggest or provide me the solution.

Put a CheckBox control in an unbound column of the datagrid.
In the click event handler for the "delete" button, iterate through the items/rows of the datagrid. For each item call FindControl to locate the specific instance of the checkbox. Cast to CheckBox and check the Checked value. If Checked inspect the item to retrieve values for parameters for a delete database command.

i want to delete record on multiple selection of checkboxes, i have this code but didnt get any result, if you have any solution then please reply either on my mail address : sukh288gill@yahoo.com or here.