Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does a grid display search results in the middle?
Message
De
04/01/1998 11:25:45
 
 
À
03/01/1998 17:24:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00068309
Message ID:
00069338
Vues:
62
>>I'm in a grid column 1 row 4. I tab into column 2 row 4.
>>The GotFocus event of the control resets the table order (inGrid in case you'
>re
>>wondering).
>>Now I don't want the cursor to jump around the grid. IOW, since the cursor w
>as
>>on row 4 when I tabbed,
>>I want it to still be on row 4 in the new column, but still the same record.
>
>
>
>>
>>I worked on this 1 1/2 years ago but never got it working quite right. I got
> s
>>omething about 90% acceptable.
>>
>>I repeat, this is more of a challenge that a request.
>
>See my message of few days ago, I'm doing something similar (just not
>with inGrid, I'm using grid form's keypress event to manipulate the
>grid), so when I switch order the grid reorders keeping the TOP record
>untouched, not the current record. The trick that did it was
>form.activate (grid.setfocus worked too, but can't use it from other
>form's valid event). Maybe you should check for the recno() in
>BeforeRowColChange, and keep it somewhere (a grid property, maybe) so
>after tabbing you forcedly GoTo it, and then form.activate before the
>grid refreshes.
>
>Worked for me...

I have no problem with the recno(), what I want to do is keep the same relative row from one column to another
when the order changes between them.

You were trying to keep the results as relative row # 1, I want to be able to press the down arrow (to relative
row 2) then right arrow (to column 2, changing order of table) and still be in relative row 2.

Bill
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform