Kev,
>> >>After the relationship's been set, try MyGrid.SetFocus()
>>Do you mean the "Child" grid, because I have tried clicking on it etc. etc.
No. The "parent" grid. The table that's driving the relationship has to be the active work area for the child table to reflect the relationship.
One other thing you might want to try.
I've had problems with the current record being out of sight. Sometimes when I'm moving things around between two grids, everything will be where its supposed to be but the user is confused because the current record is either above or below the visible pane.
When you press a key, VFP resets the grid so that the "current" record is in the vertical center of the grid.
That's fine while doing development, but a confused user is definately NOT a happy user. I couldn't find an elegent solution, so I
KEYBOARD CHR(10)
forced a keyboard character.
If anyone's got a better way of handling this, I'd really like to know.
Regards,
Thom