Mark,
>In my incremental search textbox, I have the following in my InteractiveChange method:
>with ThisForm
> .LockScreen = .t.
> with .GridName
> do while .RelativeRow > 1
> .DoScroll(1)
> enddo
> .Refresh()
> endwith
> .LockScreen = .f.
>endwith
>
I've just looked at your class, sorry for the time delay.
Sadly your solution doesn't work. The Relativerow property does return 0 therefor the record does not show up in the first line. That's what's this wish is about. The relativerow property has a value of 0 when it does not have the focus.
I can't see any reason why it should return 0 instead of the actual relativerow when the grid doesn't have the focus.
Things become more complicated when you want to highlight the row without have to set the focus onto the grid.
Personally i've found a workarround by using a negative transparent shape to highlight the row (evolved from a grid found on David F's site) and setting the height of the grid to exactly one row, refresh it, and restore the grid's height (of course with the help of lockscreen).
But this workarround is clumsy. therefore I would ask MS to fix (or enhance) the relativerow property
Walter,