Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GRID PROBLEM
Message
From
21/07/2000 15:43:43
 
 
To
20/07/2000 17:38:37
Steven Edge
Soft Solutions Limited
Lagos, Nigeria
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00395114
Message ID:
00395666
Views:
12
>Thank you Al
>
>The idea of a cursor that I zap and repopulate is great. I'm sure that one will work beautifully. However, if I want to try the other way you suggested, how would I go about it? Will restting the proprties as I described before automatically tie it to the window, provided that I had set the properties to blank before closing it?
>
>Just in parentices, the recordSource is NOT lost. The columncount, though, is set to 0, and naturally the controlSource of all columns disappear with the column.
>
>Steven

The principle is, set all data binding settings to blank before you close the table, then after you re-open the table, set the settings back to what they were:
* Before closing the table:
WITH MyGrid
    .Column1.ControlSource = ""
    .Column2.ControlSource = ""
    etc...
    .RecordSource = ""

ENDWITH

* After you re-open the table:
WITH MyGrid
    .RecordSource = < alias >
    .Column1.ControlSource = < column1 >
    etc...

ENDWITH
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform