Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relativerow property
Message
From
02/08/2006 09:47:35
 
 
To
02/08/2006 09:38:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01142100
Message ID:
01142382
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform