* Refresh the grid ThisForm.lGridRefreshing=.T. ThisForm.ControlFile.RecordSource='Control' ThisForm.ControlFile.Refresh() DOEVENTS ThisForm.lGridRefreshing=.F.This is what I have in my form grid BeforeRowColChange():
LPARAMETERS nColIndex MESSAGEBOX('in') * Used when we want to change the RecordSource of the grid and wish to preserve * the grid properties IF PEMStatus(ThisForm,'lGridRefreshing',5) AND ThisForm.lGridRefreshing MESSAGEBOX('in2') NODEFAULT RETURN ENDIFThis never go in. Any idea?