TMSFNCGrid1 DeleteKeyHandling := dkhDeleteRow always deletes the last line

OS: Debian 10 (buster) LXDE
fpc 3.3.1
lazaraus 2.1

Component: TTMSFNCGrid

TMSFNCGrid1.Options.Keyboard.DeleteKeyHandling := dkhDeleteRow;

Always deletes the last line, no matter where the cursor is.
It also does not send an event to the DataSet that the data has been deleted.

Hi,

Deleting a row is not tied to the dataset. We'll look into this and see if we can add this kind of functionality. You can handle this manually by using the OnCanDeleteRow, passing false, and then manually deleting the line in the dataset. When deleting the line, the dataset will automatically update the grid.