General information
Category:
Coding, syntax & commands
>>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
>If you base your grids on separate views/cursors, then it would be easier to figure out where the problem is.
views/cursors are not an option. the grid is updateable and there is not a unique key on the child table. bad design. i did not design it, but must now live with it.
trying for any work around possible. should grid1.click(), should it set focus to the grid? i tried it and it did not set focus. why?
thanks - brenda
Previous
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