Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child Grid displaying all records, at first
Message
From
13/06/1998 21:34:16
 
 
To
13/06/1998 21:25:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00107957
Message ID:
00107958
Views:
34
>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....)

Here I am replaying to myself :-). Am I gunna get spanked for that?
Anyway, the culprit for the above problem is....
The child grid is in a page frame. The activate event of the page does a
THIS.grd1.setfocus
If I take that out the grid displays normally.
Why do I want a grid.setfocus in the activate event of a page - simple, it forces the record mark to appear on the grid so the user knows where they are.
Any comments??
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform