Re: abort delete problem




>In a TadoDataset I'm using the BeforeDelete event to get user confirmation
>after he hit's the delete button to delete one or more rows in a grid. I've
>noticed that if the user clicks "no" to my confirmation message, even though
>I'm aborting the delete, the pointer still moves to the row above the one
>the user was on. This only occurs if the bottom row was focused when trying
>to delete. I know this is supposed to happen if the delete takes place but
>why would it move the record pointer if no delete occurs?

You should look at the code that allows you to delete multiple records.
My guess is that code is iterating through the Selectedrows
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.


Quantcast