Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position of Child Form Record
Message
From
25/10/2005 03:38:23
 
 
To
25/10/2005 03:37:09
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:
01061763
Views:
19
>>>>>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
>>>>
>>>>with resize way:
>>>>
>>>>thisform.LockScreen = .T.
>>>>PRIVATE height
>>>>height= OBJTOCLIENT(grid1,4)
>>>>grid1.height = 1+m.height-OBJTOCLIENT(grid1.columns[1],4)
>>>>grid1.Refresh
>>>>grid1.height = m.height
>>>>thisform.LockScreen = .F
>>>>
>>>
>>>Thank you, Fabio, I knew there were something missing in my code, namely the Refresh line.
>>
>>Hi Tore, Refresh is not sufficient,
>>it needs to create a grid with the cells area height = 1 pixel.
>
>As far as I can remember, the exact height is not important.

try
Previous
Reply
Map
View

Click here to load this message in the networking platform