>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.