Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox in grid problems
Message
From
08/10/1997 17:05:49
 
 
To
08/10/1997 13:38:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00053462
Message ID:
00053784
Views:
25
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform