Martineau,
>if I do a skip In the clik event of a commandbutton how c'an i refresh the grid without set the focus to the grid. i Want to show the active record in my grid if i d'ont use Grid.setfocus my record as change but the grid dosent show it.
Well if you can live with the fact that the activerow will alway be the first visible row, then you can use a custum method on the grid:
THISFORM.LockScreen=.T.
nHeight = THIS.Height
THIS.Height = THIS.HeaderHeight + THIS.RowHeight
THIS.Refresh
THIS.Height=nHeight
THISFORM.LockScreen=.F.
Regards,
Walter
>
>
>Ben.