General information
Category:
Coding, syntax & commands
Title:
Grid not refresh properly if it has focus. what to do?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only