Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Behavioural Problems
Message
From
08/03/2006 10:04:07
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01102395
Message ID:
01102423
Views:
14
>Can somebody help me with a problem I have with my grid behaviour. I have a start program which opens all my tables and sets relationships between them. When I run my form I set a filter to my first table and bind it to the grid. I have a method on the form which is called when the user changes records in the grid (AfterRowColChange event). Contained within this method will display the child records in another grid.
>
>The problem I have is when I move the record pointer in my first grid the record pointer shoots to the bottom of the grid. Therefore if I have 2 records in the first grid and then select the first record it wont let me as the last record is selected in the grid.
>
>Im confused!!!

It is not simple control two grids with a relation.

Remove the relation and uses SET KEY IN the child cursor into the gridchild.refresh
* master afterrc
childgrid.refresh

*childgrid.refresh
SET KEY TO mastercursor.eRelation IN (this.recordsource)
Previous
Reply
Map
View

Click here to load this message in the networking platform