Fabio,
VFP can not call SetFocus() internally either.
You have provided yourself with code that you should put in a RecordSource_Assign() method so that your grids work the way you want them to work.
>I only want that VFP respect HighlightStyle=2
>without the need to do a double dynamic cycle.
>
>VFPT can do this because with this code i can set the Highlight line
>without a refresh and without a double dynamic cycle:
>
>thisFORM.LockScreen = .T.
>WITH thisform.ActiveControl
> grid.RecordSource = newvalue
> grid.Setfocus
> .SetFocus
>ENDWITH
>thisFORM.LockScreen = .F.
>
>
>Then it is not the Refresh() that set the Highlight line.