Walter Meester
HoogkarspelPays-Bas
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Eric,
>>>>>Unless I clic on the grid header, the record pointer doesn't show on the screen. How can I show my current record?
>>>
>>>>Try a grid.setfocus where you do the refresh...
>>The problem is that I need to stay on another field so I want to avoid the setfocus.
>
>>Setfocus to the grid first, then your control right after.
>That's a nice one! And, like always, the simpliest answer is the good one.
Thank you Bruce.
In the refresh of the grid you could do something like this:
THIS.NoSetfocus=.T. && custom property on grid
THIS.SetFocus
THIS.NoSetfocus=.F.
In the when event of the grid:
RETURN !NoSetfocus
By this the record pointer in the grid updates, but the field which called the refresh never loses the focus.
Walter,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement