DBGRID strange behaviour ? lazarus / 16-Databases ---------------------------------------------------------------------- k1attila1 · 2017-03-25 21:29 I place onto a form an edit component and a dbgrid component (with opened dataset) edit component taborder = 2 (tabstop=true) dbgrid component taborder = 1 (tabstop = true) I'm in editing mode in grid and then : I push ESC key on grid -> everything is OK, OnExit event won't be fired. But now i change taborder : edit component taborder = 1 (tabstop = true) dbgrid component taborder = 2 (tabstop = true) I'm in editing mode in grid too and then : I push ESC key on grid -> now, OnExit event will be fired.                                           edit.OnEnter event will be fired                                           and dbgrid get back the focus again Is it normal ? ---------------------------------------------------------------------- LacaK · 2017-03-27 17:08 If TDBEdit does not have focus then OnExit should not be fired, when you are working only inside TDBGrid. ---------------------------------------------------------------------- k1attila1 · 2017-03-28 04:23 So, it is a bug ? ---------------------------------------------------------------------- LacaK · 2017-03-28 18:34 I cannot answer without detailed investigation ... you can ask in Lazarus forum or report bug and see ...