Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GRID: After a grid refresh, the record pointer is not on
Message
De
26/03/1999 02:16:14
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00201947
Message ID:
00202258
Vues:
18
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
Fil
Voir

Click here to load this message in the networking platform