Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position of Child Form Record
Message
From
24/10/2005 13:46:03
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01061639
Message ID:
01061642
Views:
41
>Hi all,
>
>I have a form with two grids, a parent and a child.
>
>When I move within the parent grid the child grid moves accordingly. However, the position of the "found" child record displays as the fifth row of its grid.
>
>How do I programmatically make the "found" record appear in the first row of the child grid?
>
>Thanks
>Vince

You have to do a trick: In afterRowColChange of the master grid:
local lnHeight
thisform.lockscreen=.T.
With this.parent.yourParentGrid
  lnHeight=.height
  .height=10 && or small enough to only show one line
  .height=lnHeight
Endwith
thisform.lockscreen=.F.
Previous
Reply
Map
View

Click here to load this message in the networking platform