Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing Grid from other form
Message
From
10/11/1997 16:01:13
 
 
To
10/11/1997 14:33:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00059328
Message ID:
00059372
Views:
31
>>>>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
rostand
"le rêve d'étoiles" - (Fr.) the dream of the stars Ü
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform