AD
Administrator
Syncfusion Team
July 3, 2003 09:17 PM UTC
The default behavior of the grid is to delete rows if you select a row range, and press the delete key.
In your code, what is happening is that the rows have already been deleted by the time your RemoveRows() method is called, so the selected range has been removed. Hence, the range you get is empty. You can see this by commenting out your CurrentCellKeyDown code, so your RemoveRows is never called, but the selected rows will be removed anyway.
JM
Jose M. Gonzalez
July 7, 2003 03:54 PM UTC
Oooooopppsss! Got it.
What do you recommend if I need to show a confirmation message before the user deletes one or more rows?
Thanks
AD
Administrator
Syncfusion Team
July 7, 2003 04:33 PM UTC
You can use the RowsDeleting event. It is cancelable.