Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids / Record pointers
Message
De
24/10/1998 21:28:27
 
 
À
22/10/1998 16:38:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00149567
Message ID:
00150247
Vues:
18
>VFP 5.0a
>
>Small problem that is only apparent when using grids. 2 cases both involving a parent grid and a child grid.
>
>First case. The parent grid has a calculated field based on a form method. The form method does not change any record pointers in either the parent or child table. In fact it does not change any record pointers in any table in the data environment the grids are tied too. Clicking in the child grid the record pointer always moves to the first record in the child grid. It is impossible to move to any other records in the child grid because the record pointer always jumps straight back to the first record in the child grid. (remove the calculated field and it works fine)
>
>Second case. (Different situation) The parent and child grids have no calculated fields. If the record pointer is moved programatically in the child grid then the record pointer will always jump back to the first matching record in the child grid. If the record pointer is moved by keyboard or mouse then all is well. If the parent grid is removed (and text boxes substitued so able to view one record at a time) and the record pointer is moved programtically in the child then all is fine.
>
>Anyone got any ideas on these horrid grid things. I'd be very appreciative.



gridDetail.LinkMaster = MasterTable
gridDetail.RelationalExpr = CommonKey

This can be set in Wiz. by right click grid, select last tab and fill the
relation field to MasterTable.CommonKey, then the above two properties will
be set. Standard Alias (1) on RecordSourceType is enough!

^-^; Good Luck...
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform