>
>Here's a program that demonstrates the problem:
It looks like the behavior of grids that was probably designed into them turned out to be a messy jumble for VFP to maintain. I tested your code and you are right.
I also figured out why I never see this behavior... in any action that I perform in a grid, the SetFocus is the last thing I code. So inthe click event of a button, if I
SELECT whatever
DELETE
THISFORM.mygrid1.Refresh()
THISFORM.MyGrid1.SetFocus
I never see your problem.
While the inconsitency is annoying, remembering its presence and avoiding the situation looks like enough of a workaround.
Erik Moore
Clientelligence