code to disable the DELETE key

  • Thread starter Thread starter ziad dodin
  • Start date Start date
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 !!
 
Back
Top