Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid on form blanks out
Message
 
 
À
01/05/2003 01:39:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00783564
Message ID:
00783566
Vues:
21
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform