code to disable the DELETE key

Z

ziad dodin

how to disable the DELETE key in a gatagrid control
without having to make the datagrid as READ-ONLY; I wander
if there is a code to diable this key because it is very
dangerous in master detail relations where the user
presses the delete key and all rows and child rows
disappear; It could be easily handled by ignoring the
deletions of the GETCHANGES in the update event; but
momentarily the users does not see that !!

there is something in the e.handled = true or something
like that !!
 

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

Top