Problem with Delete Confirmation
-
Hi... I am having datagrid. In that i have button column in all the rows. Now on click of button column, grid's DeleteCommand event gets called. But i want to show the no of records affected by deleting and if user press ok , then only this Delete Command should perform delete operation. How to do this... Plz help...
-
Hi... I am having datagrid. In that i have button column in all the rows. Now on click of button column, grid's DeleteCommand event gets called. But i want to show the no of records affected by deleting and if user press ok , then only this Delete Command should perform delete operation. How to do this... Plz help...
You should use a confirm extender control which is ajax. check this out http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ConfirmButton/ConfirmButton.aspx
-
Hi... I am having datagrid. In that i have button column in all the rows. Now on click of button column, grid's DeleteCommand event gets called. But i want to show the no of records affected by deleting and if user press ok , then only this Delete Command should perform delete operation. How to do this... Plz help...
Instead of putting delete button on each row, you can put a check box on each row so that you will get a list of records to be deleted or modified. If you put delete button on each row, there will be only one record for delete at a time.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.