Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relationships in Grid Control
Message
From
24/05/2001 08:17:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/05/2001 08:09:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00510788
Message ID:
00510796
Views:
21
>Afternoon
>
>I am having a bit of difficulty, and would like someone to confirm my property settings in the Grid control.
>
>I have ParentTable and ChildTable who have a one-to-many relationship linked via field - CL_REF. The grid's RecordSource is "ChildTable".
>
>I want to grid to just display the matching CL_REF records from ParentTable, so I have set the following properties:
>
>ChildOrder = "CL_REF"
>LinkMaster = "ParentTable"
>RelationalExpr = "CL_REF"
>
>Is this correct?
>
>Thanks
>Kev

Kevin,
If in code you mean

select childTable
set order to tag cl_ref
select parentTable
set relation to cl_ref into ChildTable

Then it's correct. However if you have a DE and in DE childTable order is something else then your grid might display nothing.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform