Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrolling thru grid - refresh other textboxes
Message
From
19/04/2016 11:02:16
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
19/04/2016 10:23:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01634978
Message ID:
01634981
Views:
36
>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]
Previous
Reply
Map
View

Click here to load this message in the networking platform