Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need help on forms and grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00255772
Message ID:
00255957
Views:
24
Hi Susan.

>> how can i select a certain record from a table displayed in a grid and then have the information from the same record that i just selected to appear on my form <<

If the grid and the other controls are on the same form, and th other form controls are bound to the same table as the grid is, just put

This.Parent.Refresh()

In the AfterRowColChange method.

The form will automatically keep in synch with the grid without using extra key strokess.

Of course, this will fire even if you are only tabbing thru fields of the same record in the grid. So if you like, save the current record number to a custom property of the grid in BeforeRowColChange. Then, in AfterRowColChange, check to see if the custom property = RECNO(). If not, you have changed rows and that is when you need to do your refresh.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform