How to detect if a cell is being edited in TAdvStringGrid

Hi,

I have some paste code that needs to run on keyb shortcut. If the user is currently editing a cell in the grid, I need the data to go in there, otherwise I can do other things with it.

How do I detect that the user is currently editing a cell?

I tried reading EditActive - but it returned false all the time.
I tried reading CurrentEditor - but it's always edNormal whether the user is editing or not.

Thanks

The grid.EditMode: boolean property can be used to know if an inplace editor is active for a cell.

1 Like

Brill, thanks Bruno. I had missed that one. :smile: