Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox in grid problems
Message
De
08/10/1997 17:05:49
 
 
À
08/10/1997 13:38:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00053462
Message ID:
00053784
Vues:
30
>>>This is generic recommendation: it's much better to use cursor's alias as Grid.Recordsource, because here you can always check >record field value when you move grid (record) pointer.
>>
>>I am using the cursor's alias as grid.recordsource. I guess I should have noted that the grid is for the child table on the form.
>>I tried setting relationships in the dataenvironment i.e. grandparent -> parent -> child ( and not setting the listbox.rowsource programmatically as in the code above), but the drop-down list then includes ALL of the child records for all of the parents - not just those of the current parent.
>>Surely there is a way of getting the value of a particular field on the active row?
>>
>If you have cursor as a recordsource, then just check for appropriate cursor field value, which is always associated with active grid >row==cursor record.


Aha! That worked great. Thanks for your help.
Martyn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform