Have you peaked at my solution? :-)
>Yes you could use an old trick:
>
>* You moved the pointer here
>local lnHeight
>With thisform.myGrid
> lnHeight = .Height
> .Height = .RowHeight+.HeaderHeight
> .refresh
> .Height = m.lnHeight
>endwith
>
Cetin
>
>
>>It works but i still have a little problem :
>>before starting the procedure to get the new cursor i call the activatecell(1,1) method, get the PK then call the procedure and locate for the PK again
>>then refresh the grid.
>>The record is placed at the half of the rows in the grid....
>>is there a way to put it in the first one ?
>>Thx again
>>Alessio
>>>I see. Then you could activatecell(1,1) and get pk then.
>>>Cetin
>>>
>>>>Ah :-)
>>>>Yes that is what i actually do.
>>>>But i was trying to get over the situation in which user scrolls the grid without setting the focus on a record. I thought relativerow could help but i'm not still sure about it
>>>>
>>>>>I mean primary key of your recordsource.
>>>>>Cetin
>>>>>
>>>>>>hoi cetin
>>>>>>what is PK ?
>>>>>>>>>Hi Alessio,
>>>>>>>>>
>>>>>>>>>>How should tha relativeroww property be managed ?
>>>>>>>>>
>>>>>>>>>What are you trying to accomplish? Maybe there's an alternative that doesn't require RelativeRow.
>>>>>>>>I'm trying to have the same or at most the closest to the same screen after I requery a select
>>>>>>>
>>>>>>>Saving the current PK and locating it after a requery would do for you?
>>>>>>>Cetin