I am finding that when editing DBGrid, leaving the grid to another
TForm and returning to the DBGrid causes disruption to the DBGrid
highlight. It simply disappears until a key is pressed. This is very
confusing to an end user.
- This disappearing highlight happens especially
- Toggling the dgAlwaysShowEditor option seems to
cause this problems with the focus.
- The options are set to DgAlwaysShowSelection.
- The form containing DGGrid has the
Form1.ActiveControl set to DBGrid1.
The only solution I can find is to do a 'dummy' BitBtn.setfocus and
immediate DBGrid.setfocus in OnActivate. This has to be done whenever
changing the dgAlwaysShowEditor option. Fortunately, this trick
"flicks" the highhight in DBGrid back on.
It works, but this is fiddly. Is that how Delphi is meant it to be?
Who knows a better way?
Emails appreciated. I will reply.