>>>thisform.lockscreen=.t. >>>with this >>> nHeight = .height >>> .height = .headerheight + .rowheight >>> .refresh >>> .height=nHeight >>>endwith >>>thisform.lockscreen=.f.>
THISFORM.LockScreen=.t. nHeight=THIS.Height THIS.Height=THIS.HeaderHeight+THIS.RowHeight DODEFAULT() THIS.Height = nHeight THISFORM.LockScreen=.f.The biggest advantage of this method is that you don't have to set the focus to the grid. A simple THISFORM.Refresh will do.