do form findrec with thisformi add a propery frmwithgrid on form findrec. and in it's init event i have this,
lparameters frmwithfrid if type("m.frmwithgrid") # "O" thisform.frmwithgrid = null else thisform.frmWithGrid = m.frmwithgrid endifin locate i refresh mygrid1 with this,
thisform.frmwithgrid.mygrid1.refresh()but mygrid1 does not point to the found record, so i put setfocus first to mygrid1 with this,
thisform.frmwithgrid.mygrid1.setfocus() thisform.frmwithgrid.mygrid1.refresh()in the first search, mygrid1 highlights the found record. but after the second try, i get error "activeform is not an object".