Make sure the cursor/table is index.
In the text.InteractiveChange method do the following.
*****************************
thisform.lockscreen=.t.
local lcLastnm
select customer
lcLastnm=allt(this.value)
seek lcLastnm
ThisForm.myGrid.setfocus()
this.setfocus()
thisform.myGrid.refresh()
thisform.lockscreen=.f.
*********************************
Works every time.
>Hello,
>
>I am looking for a way to do a search in a grid that has 2 columns, indexed on first. Example, I want to type "1234" and have the grid positioned to the matching record. Similar to the listbox IncrementalSearch functionality.
>
>I could trap one keyboard click and use the keypress method but how would I adjust for multiple key stokes like "1234"?
>
>I do have allowcellselection set to false so the grid does act like a list box.
>
>Thanks,
>
>Jeff
Work as if you don't need money
Love as if you've never been hurt before
Live as if this is your last day to live
Dance as if no one's watching