Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing Grid from other form
Message
From
10/11/1997 16:10:43
 
 
To
10/11/1997 16:01:13
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00059328
Message ID:
00059375
Views:
34
>>>>>The grid has ControlSource from this table.
>>>>>
>>>>>But..., I can see added records only when I press the Mouse button on the Grid.
>
>ed, dennis,
>
>pardon me, but isn't it a given that refresh() in grids does not work? i asked this problem several times in msnews-groups.
>
>by moving the grid up and down will the grid refresh and i tried doing it programmatically (i failed). david frankenbach gave a better method of programmatic moves with several refresh() calls.
>
>the easiest way is :
>* in the method where you visible =.t. the second form, prior to that line.
>this.grid2.controlsource = "" && prevents wrecking your grid settings
>this.grid2.controlsource = "yourcontrolsourcename"
>
>if you have columns hidden, like i do because they are the real id's, go to the database designer, and drag down those fields. in your grid, these columns will be at the end and so, hide the columns. at runtime they will not appear. rest assured, when you are at a record, those fields are present.
>
>hth,
>rostand
>rabear@philonline.com

Yes, it's known method to shake-off recordsource (I guess you misspelled it as controlsource). The problem here that grid will jump shifting current record to top of the grid. Anyway, it works already, just look at the end of this thread.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform