Editing virtual cell in TAdvStringgrid


If I using virtual cell by using OnGetdisplText event to show the cell content and OnGetEditText to assign cell value when user edit the cell. After that I'll implement code in event OnEditCellDone to get the new value from myGrid.GridCells.
Can you please let me know how can I capture the event when user hit escape key in the editor?


OnEditingDone is triggered when the editor closes.

But this event happens when user hit Enter and user hit Escape key. I only want to know if user hits escape key.

If you want to know what key was pressed, you'd need to implement the grid.OnKeyPress event.