Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two grids on a form
Message
De
13/11/1998 09:53:24
 
 
À
13/11/1998 09:46:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00157372
Message ID:
00157378
Vues:
17
>>Both issues should be resolved by firing Thisform.Uppergrid.Setfocus from Lowergrid.AfterRowColChange event. This call might be temporary, i.e. you can immediately reset focus back to lower grid.
>
>I have attempted this. The problem is that I would like the person to easily go from record to record in the lower grid. The Thisform.Uppergrid.Setfocus and then the focus back to the lower grid causes the upper grid highlight to vanish again. It does bring the correct record up in the upper grid. Ideally I would like to have both grids have a highlighted record. Is that possible?

How do you highlight the current row? If you trigger it from Grid.AfterRowColChange event (normal way), then your code might be following:
***Lowergrid.AfterRowColChange event
IF Thisform.LowerGridRecNo=RECNO("lowergridcursor") && only column changed
RETURN
ENDIF
Thisform.UpperGridRecno=-1 && to ensure upper grid toggling
Thisform.UpperGrid.AfterRowColChange() && re-highlight upper grid
Thisform.LowerGridRecno=RECNO("lowergridcursor")
This.Refresh && re-highlight this grid
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform