Dave,
Make sure that the parent table is set as the InitialSelectedAlias in the DE. You may need a GOTO TOP followed by a thisform.Refresh() in the Form.Init().
FWIW I've stopped using related child tables in grids. I find it much easier to use a parameterized view of the child table as the source for the grid.
>Hi all,
>I've got a child grid with all the link, master, relationship properties set up on a one to many form.
>Inexplicably, my grid now initially displays all records in the child file, until the master record pointer is moved and the grid is refreshed.
>If I move the record pointer in the Load or the Init or in the first Refresh events I still get *all* the child records showing.
>If I put a button on the form and its click method is simply "thisform.refresh", then clicking it fixes the display too, but I can't put that in my deliverables!
>If I put a timer on the form which does "thisform.refresh" the problem isn't fixed - that's wierd. Why should a button click with "thisform.refresh" behave differently to a "thisform.refresh" in a timer event?
>
>Strange.
>
>I've taken to stuffing a next/prior sequence into the keyboard which fixes the problem, but it's not nice. :-(
>How can I make it more reliable? It did work before (so yep, I've changed something or other....)