Page 1 of 1

TCRDBGrid take focus away

Posted: Mon 02 Jul 2007 11:42
by iskywalker
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

Posted: Tue 03 Jul 2007 07:48
by Antaeus
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.