Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relativerow property
Message
De
02/08/2006 10:12:58
 
 
À
02/08/2006 09:38:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01142100
Message ID:
01142399
Vues:
26
thanks Cetin

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform