Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Occasionally disappearing grids
Message
From
30/08/2010 21:00:39
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01479327
Message ID:
01479332
Views:
41
I don't know whether it is or is not a grid reconstruction issue -- but I doubt it.

As I said, the base class for these grids is a class that I use all over the place. That class handles all the stuff of constructing the grid's properties safely. I have gone over that many many times ...

The columns and a number of other properties for the grid are all added at run time (in this case, on the page Activate). This is handled by a single method in the grid, which is called in the Activate event code.

As I said, I can verify that the grid's recordsource is correct, and has records, etc. Furthermore, all the grids columns are correct. (They are not automatic -- I never do that. The number of columns, column headers, etc, are all dynamic.)

Last of all, this works correctly MOST of the time.



>>I'm having this problem with occasionally disappearing grids.
>>
>>Each of the three grids for which this is happening are on different pages of a pageframe. (There are a few other pages as well, but they are not relevant.). They are all based on the same class (a sub-class of my base grid class)
>>
>>The columns for each grid, as well as their RecordSources, are created in the Activate for the page they are on (only the first time, though).
>>
>>What I am getting, some of the time, is that the grid appears, has all the columns I am expecting to see, but no rows appear. I can tell that the recordsource (a cursor) exists, has records, does not have a filter, and the record pointer is on the first record.
>>
>>MOST of the time, when I bring up this form, the grids appear as desired. But some of the time (20% ??), the grids are blank. When they are, closing the form and re-opening it causes them to display properly. (When any of the grids are blank, they are all blank --)
>>
>>I have used the base grid class which creates the recordsource and add columns a zillion times, throughout all my applications. (Most of which are very heavily grid-reliant). I have not seen this behavior before.
>>
>>I cannot even begin to guess what may be happening here. Any thoughts?
>
>Could it be a grid reconstruction issue?
>
>Also, are you adding the grid in run-time or defining its properties in run-time?
Jim Nelson
Newbury Park, CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform