Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One to many in grids
Message
De
19/05/2005 07:46:33
 
 
À
18/05/2005 08:05:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01015275
Message ID:
01015772
Vues:
23
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform