Hi there,
Could you please let me know how I can programmatically close out of an in-cell editor and post the value in a grid cell?
ie. when a user types into a grid cell and clicks a separate button to save, without stepping onto another cell first, then the OnCellEditSetData event hasn't fired and the cell's value has not been posted. Meaning the value can't be saved. I have tried setting focus to another control within the save event, but that doesn't help.
This would also be useful when deleting a grid row. If you delete a row while editing a cell, then the editor is still visible, despite the row being gone.
Any advice would be appreciated.
Thanks,
David
Hi,
You can use TMSFMXGrid1.StopEdit; to stop editing and persist the value (calling the OnCellEditSetData)
or TMSFMXGrid1.CancelEdit to stop editing and not persist the value.
Kind Regards,
Scheldeman Pieter