Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disappearing Grid
Message
From
02/02/1999 09:38:42
 
 
To
02/02/1999 09:02:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00182897
Message ID:
00182913
Views:
18
>I have a formset and one form has a grid for browsing a file. At times I need to close the file and then reopen it again. Since the grid momentarily looses its data source, it disappears. Is there an easy way to recreate the grid? Right now I'm releasing the whole formset and recreating it again. All I need is just to get that one grid back. Do I need to hard code the grid in a routine and call the routine?
>
After data source reopening you should also restore grid recordsource and column.controlsources:
With Thisform.Grid
.Recordsource="mytable"
.Column1.Controlsource="mytable.myfield1"
.Column2.Controlsource="mytable.myfield2"
***
.Refresh
Endwith
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform