W
WineNCheese
Hi all.
I'm having problems preventing the delete of datagrid rows when they are
selected via keyboard selection. I have implemented the common solution of
overriding of PreProcessMessage() to prevent delete when the user selects
the entire row by selecting the row header. This works fine. However,
execution does not enter this method for this scenario:
The user selects a particular value in a particular row/column with the
mouse, and then uses SHIFT-Down Arrow one or more times to select multiple
rows, and then presses delete. Execution does not enter the
PreProcessMessage() method, and the rows get undesireably deleted from the
grid.
BTW, I cannot override ProcessCmdKey() for this either, because this
prevents the use of the delete key within editable columns.
Any ideas?
Thanx!
P.S. I didn't see anything in the DataGrid faq at SyncFusion either,
regarding this.
I'm having problems preventing the delete of datagrid rows when they are
selected via keyboard selection. I have implemented the common solution of
overriding of PreProcessMessage() to prevent delete when the user selects
the entire row by selecting the row header. This works fine. However,
execution does not enter this method for this scenario:
The user selects a particular value in a particular row/column with the
mouse, and then uses SHIFT-Down Arrow one or more times to select multiple
rows, and then presses delete. Execution does not enter the
PreProcessMessage() method, and the rows get undesireably deleted from the
grid.
BTW, I cannot override ProcessCmdKey() for this either, because this
prevents the use of the delete key within editable columns.
Any ideas?
Thanx!
P.S. I didn't see anything in the DataGrid faq at SyncFusion either,
regarding this.