Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scrolling thru grid - refresh other textboxes
Message
De
19/04/2016 11:02:16
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
19/04/2016 10:23:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01634978
Message ID:
01634981
Vues:
37
>I have a class in which there is a grid that has 6 columns with info from a record. Below the grid are numerous textboxes reflecting info in other fields in the record. How do I get the 'other fields', who's controlsource is the record fields, to update as I go down the rows to reflect the info in the record now highlighted in the grid? I would have thought this would be automatic..
>
>Many thanks.

You need the AFTERROWCOLCHANGE event of the grid. Raise a method from there and refresh appropriate objects. I normaly have tgis stuf in an extra container, so I only need to refresh this container. Faster then the whole form.

It's also a good idea to not call the method directly, rather call a timer, so fast scrolling will not be slowed down by the refresh. There is a setting for the repetition of the keyboard, slightly longer will do.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform