Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Click event in grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00243109
Message ID:
00246197
Views:
25
I have the same problem, except with the valid clause on an ever changing (refreshing field in a grid, it is refreshing because it is temp, and updated from an ODBC SQL select). We lose the valid clause, am I going to have to manually rebuild this using the addobject etc... and if so can I see an example and/or a walkthrough of the basic process for adding back in a combobox, and/or a valid clause on a text field??

Thanks
Keith

>The first question is Why do you need to close and reopen the alias for the grid? What are you doing that requires this?
>
>Secondly, you have a problem in that the grid goes insane when you rip the recordsource out from under it. You can try a few things that may help.
>
>1) change the recordsource to "" then close and reoopen, finally reassign the recordsource.
>
>2) populate the grid with columns that you have defined using the DEFINE CLASS syntax. When you close the recordsource and reopne it, strip out all the columns and recreate them using Thisform.Grid1.AddObject() and setting the appropriate proeprties.
>
>3) eliminate the need to close and reopen the table and the whole problem goes away.
Previous
Reply
Map
View

Click here to load this message in the networking platform