>When i deactivate a window with grid, the data in the grid disappears. I use local views and am in the same data session. It doesnt matter what window i activate (even the command window) the data in the grid disappears as soon as the window is deactivated.
>some additional info. the data reappears when the window is activated again. also when any other controls in the same window are activated, the grid data dissappears. i need the data to stay on the screen when the grid is deactivated. it only seems to happen with this window. my main app window with grid data seem to operate ok.
>Anybody have any suggestions?
A SWAG - use the form's LockScreen to prevent the changes to the form from appearing when the Form Deactivates, and reenable it when the Form Activates:
thisform.LockScreen = .f.
thisform.LockScreen = .t.
This prevents the Form from being visibly updated when Deactivated, and reenables updating when Activated. Deactivate may be too late for your grid, but it's worth a shot...