Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid not refresh properly if it has focus. what to do?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Grid not refresh properly if it has focus. what to do?
Miscellaneous
Thread ID:
00134053
Message ID:
00134053
Views:
60
having two grid problems.

1) grid will not refresh properly if it has focus (if there are child records, points to correct record but shows the entire table). unfortunately the grid is the only readonly = .f.. does not make sense to set focus anywhere else. tried to setfocus on something, grid1.refresh, then grid1.setfocus. no luck.

2) if there are no child records, the last record always flashes on the grid for a split second (long enough to read) before going blank. this flashing is driving me crazy. put messageboxes everywhere and it always shows the child table at eof. any suggestions?

a little background. i have a toplevelform with a pageframe. page1 has two different containers, each with their own grid. both grids are child grids with their relationship established in the grid properties. starting to think that the pageframe (activate), setfocus and child grids are one hell of a problematic combination.

PAGE1.ACTIVATE && pseudo code
lockscreen = .t.
incorrect.container_and_grid..visible = .f.
correct.container_and_grid.visible = .t.
perform_calculations
correct.container_and_grid.refresh
lockscreen = .f.

thanks - brenda
Next
Reply
Map
View

Click here to load this message in the networking platform