Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two grids on a form
Message
From
13/11/1998 09:53:24
 
 
To
13/11/1998 09:46:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00157372
Message ID:
00157378
Views:
18
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform