DBGrid OnKey events do not work. lazarus / 31-LCL ---------------------------------------------------------------------- iru · 2014-01-29 21:38 Gentlefolk, Environment: Linux Mint 16, Laz 1.2RC2. Perhaps this should be reported via the bugtracker but I dont think it is really a 1.2RC2 problem. I have tried 1.2RC2 to use some event code as suggested in bug 23103. I have a program using DBGrid where the "OnKey/Up/Down/Press" events do not work. OnCellClick does work. The events are defined in the object inspector and are in the .lfm file. Break points on my "OnKey/Up/Down/Press" code do not work. I have created a test project with a DBGrid, everything works OK, breakpoints work, etc. So what is wrong with the Onkey event code in my program? Any ideas, suggestions where to look, etc appreciated, Ian. ---------------------------------------------------------------------- iru · 2014-01-30 02:58 Gentlefolk, A little more on this. 1. Rolled back the form with the OnKey problem, same result. 2. Added another form, created DBGrid, Datasource (to the same databuf). OnKey event code works. So, something ugly in the original form? Ian. ---------------------------------------------------------------------- iru · 2014-01-30 22:47 Gentlefolk, Spent some time chasing this logically, no success. Saved and then deleted the form and its components. Re-created the form and it components manually. OnKey events now work. Onwards, Ian ---------------------------------------------------------------------- iru · 2014-02-09 03:08 Gentlefolk, The problem is me! The DBGrid is located in a tFrame. Things do not appear to work correctly unless after a compile you delete the tFrame from its "host" page and then re-insert the frame in the host page. Ian