Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disappearing Grid
Message
From
02/02/1999 13:33:10
 
 
To
02/02/1999 13:24:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00182897
Message ID:
00183064
Views:
19
>>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?
>>
>>Thanks,
>>Allen
>
>Allen,
>Edward's advice is valid and good, but from my experience not always necessary. Usually it is enough to unbind the grid temporarily, refresh your datasource, and the rebind the grid. Doing it this way, you won't lose any code in columns and controls, and any special formatting in the columns etc.

Erik, it's true as long as you have 'default' setting of columns, i.e. e.g. Column1 bound to Field1, Column2 to Field2 etc. If it's not, then even simple unbind-bind again will revert setting back to default, not to mention situations with customized controlsources, subclassed column.controls etc.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform