Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid won't refresh
Message
De
20/10/2021 15:57:45
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
20/10/2021 14:53:39
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01682555
Message ID:
01682566
Vues:
64
J'aime (1)
>>>The result is no rows shown in the grid. (Not the empty grid you'd get without Safe Select). If I click onto _SCREEN and then back on the form, the grid fills in.
>
>IME this infuriating and time-wasting "feature" usually improves if you formally setfocus() to a control away from the grid before repopulating/refreshing it. I don't believe that a toolbar button will suffice; try thisform.btnDummy at -100,-100 whose only purpose is to receive focus. Bring focus back to the grid afterwards if needed.

A toolbar button doesn't take focus, it's designed that way. But yes, I've seen this technique several times, even a dummy textbox with negative coordinates, defined at form class level, whose only purpose is to take focus when needed. I have forgotten when it was needed (except before save, so the current control loses focus and thus forces its controlsource to get updated with its current value), but now that you mentioned it, yes, repopulating a grid would be another good time.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform