TCRDBGrid take focus away

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
iskywalker
Posts: 16
Joined: Mon 25 Jun 2007 15:00

TCRDBGrid take focus away

Post by iskywalker » Mon 02 Jul 2007 11:42

Hi!
I have 2 TCRDBGrid one is fixed and the other can be shown or hidden.
When the 2. appers it shouldnt have a focus. I am so far, my problem is when the 2. takes the focus ( one listitem is marked) and then the user clicks one the first TCRDBGrid. The item stay marked on the 2. TCRDBGrid. i wish to remove the mark. How can i do that with TCRDBGrid?
setting selectedindex to -1 doesnt work.
thx in advance

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 03 Jul 2007 07:48

Probably you have the AlwaysShowSelection option of your grid set to True. Try to change it to False.
If it is not the reason of this behaviour, please describe in more detail, what mark do you mean.

Post Reply