Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One to many in grids
Message
From
19/05/2005 07:46:33
 
 
To
18/05/2005 08:05:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01015275
Message ID:
01015772
Views:
22
>Help please!
>I have a form with two grids (the top is 'one to many' to the bottom).
>Both based on cursors that based on tables.
>I have a method to populate the bottom grid, but how do I call to the method from the grid?
>I tried in the text of the grid column, but there is no reaction.

Chaim

Further to Cetin's reply:

In the DE you may find the relationship lines between the 2 tables, parent -> child. What I do is delete these (it won't delete the persistent rel's in the dbc) then draw new rel, from the child FK to the parent PK, effectively reversing the rel such that the parent becomes the child.

Thus, when you move through the (officially) parent grid, the child file pointer moves accordingly, without any code, and the child grid shows the correct data.

Suck it and see

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform