>That Refresh method only repaints the control, it
>doesn't update the data. Call the =REFRESH()
>function or the =REQUERY() function. Of course
>this does depend upon your use of views to
>populate these grids.
This will remove the record just just delete from the grid. This code is executed from the delete button which is beside the grid. This.Parent.cGrid is a property containg the name of the grid. For example: ThisForm.MultiplePages.Page2.ClientGrid. By resizing the grid temporary to its headerheight and back again to its normal size will referesh the grid for good. Don't forget to put ThisForm.LockScreen to .T. before refreshing and back to .F. after.
* Refresh grid
STORE EVALUATE(This.Parent.cGrid+".HeaderHeight") TO lnOldGridHeaderHeight
=EVALUATE(This.Parent.cGrid+'.SetFocus()')
STORE EVALUATE(This.Parent.cGrid+".Height") TO (This.Parent.cGrid+".HeaderHeight")
STORE lnOldGridHeaderHeight TO (This.Parent.cGrid+".HeaderHeight")