>>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.