Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid on form blanks out
Message
 
 
To
01/05/2003 01:39:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00783564
Message ID:
00783566
Views:
19
>Hi. VFP7 user. What could be a possible reason for a grid disappearing from a form, leaving a white, empty box?
>
>Thanks, Randy

You have probably closed and re-opened the data source - this can be done accidentally just by re-executing a SQL SELECT that creates the cursor a grid is bound to. Note you could be doing this in the Init() event of your Form and that would do it too. If your data source is dynamic, then try to create it in the Form's Data Environment BeforeOpenTables() event.

If the data source is open exclusively, and you have a method or event in the Form that does a Pack, then this will also close and re-open the table, which can break a grid.

Or: try using a View and doing a Requery().

Also check that the Grid's RecordSource property is not being set to an empty string or the ColumnCount set to zero.
censored.
Previous
Reply
Map
View

Click here to load this message in the networking platform