* * *

Author Topic: DBGRID strange behaviour ?  (Read 836 times)

k1attila1

  • Jr. Member
  • **
  • Posts: 63
DBGRID strange behaviour ?
« on: March 25, 2017, 10:29:12 pm »
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 ?








« Last Edit: March 26, 2017, 07:04:32 am by k1attila1 »

LacaK

  • Hero Member
  • *****
  • Posts: 546
Re: DBGRID strange behaviour ?
« Reply #1 on: March 27, 2017, 07:08:07 pm »
If TDBEdit does not have focus then OnExit should not be fired, when you are working only inside TDBGrid.

k1attila1

  • Jr. Member
  • **
  • Posts: 63
Re: DBGRID strange behaviour ?
« Reply #2 on: March 28, 2017, 06:23:11 am »
So, it is a bug ?

LacaK

  • Hero Member
  • *****
  • Posts: 546
Re: DBGRID strange behaviour ?
« Reply #3 on: March 28, 2017, 08:34:43 pm »
I cannot answer without detailed investigation ... you can ask in Lazarus forum or report bug and see ...

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus