Delete Template

J

Jeremy Martin

Hi,

I am using a datagrid to edit the ItemTemplate and EditItemTemplate
however I was wondering if there was a DeleteItemTemplate.

What I would like to accomplish is when they click the delete button
column it would reload the grid and one of the columns would have a
chkboxlist containing options on what to delete.

ie not just that record but let them choose to delete child records or
run routines

Thanks
Jeremy
 
V

venkat.oar

Hi Jeremy,

I think this solution would be little clumsy, but u may want to try it
if it works for u.

1) write a "OnDeleteCommand" for the datagrid
2) invoke "OnEditCommand" from the "OnDeleteCommand", so that u run
your logic to list the checkboxes.
3) In the same "OnDeleteCommand" function check for that row if it has
those checkboxes, then perform your delete routine.

Hope this is not another problem for you!..

--Venkat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top