We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Deleting from GDBG with Extended Multiselect

We require extended multiselect functionality in our application. I found the code in the grid knowledgebase that made this happen, but there is a problem. The delete works fine if the rows to be deleted are selected from top to bottom of the grid. If the rows are selected from bottom to top, too many rows are deleted. I have included a small sample that shows this. If you select rows 1.5, 2.5, 3.5 and 4.5 in that order, you are left with rows 1.0, 2.0, 3.0, and 4.0. However, if you select rows 4.5, 3.5, 2.5, and 1.5, you are left with rows 1.0, 3.0 and 4.0 only. I appreciate any light that you can shine on this. Ken DeleteGrid_579.zip

1 Reply

AD Administrator Syncfusion Team August 16, 2005 09:16 PM UTC

At the bottom of OnRowsDeleting, try setting e.Cancel = true;

Live Chat Icon For mobile
Up arrow icon