>thisform.grid1.recordsource="test" >thisform.grid1.column3.controlsource="test.code" >thisform.grid1.column4.controlsource="test.name" >>command1 has following codes
>select test >seek thisform.text1.value && that is 12 >if found() >thisform.text2.value=name >endif >>grid1 contains all test.dbf data.
yourgrid.highlightstyle=2 yourgrid.refresh()