Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid columns disappear
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01413641
Message ID:
01413642
Views:
47
>I have very similar grids on two pages of my form.
>
>The classes for each of the two grids are defined in a VCX library. The classes for the columns, headers, textboxes, and editboxes used by the grids are defined in a PRG file. Each grid uses its own column, header, textbox, and editbox classes.
>
>I set up the grids and their columns using the form designer.
>
>I run into very strange behavior when I run the form and go from the page containing one grid to the page containing the other grid, and then back to the first page. When I initially go to the first page, the grid on that page works just fine. I then go to the 2nd page, and the grid there works fine too. However, when i go back to the first page, the grid doesn't work properly. For example, I get error messages from my refresh code that is assigning the controlsource properties of the columns. The messages say that colFilename is undefined. If I run this under the debugger and put a breakpoint in the Refresh method of the page I can see that the Columns collection is empty.
>
>The mirron thing happens if I go to the 2nd page first, then to the 1st page, and back to the 2nd page. In this case, the columns in the grid of the 2nd page are missing.
>
>Any thoughts?
>
>Thanks,
>Jim

Does the same problem happen if you set up your grids in run-time?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform