Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing a Grid.RecordSource
Message
From
31/10/1999 17:03:38
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00284577
Message ID:
00284581
Views:
16
>I have a grid that has as it's RecordSource a table that is created in the Form's Load method. The grid1.column1.text1.ControlSource is a field in this table.
>
>At one point a procedure is called from a procedure file that re-creates the table with new data, calls a grid.refresh and returns to the form.
>
>This used to work. I must have touched something because now when the form is re-activated the grid is empty and completely in-active. If I run the form with the Debug window open, everything works fine but by itself, nothing.
>
>I can see that the table is selected and filled with the correct data and I can see that the grid1.RecordSource and grid1.column1.text1.ControlSource settings are still the same.
>
>Any suggestions as to what might have changed? I've tried everything (well, apparently not everything).
>
>TIA
>
>Ed

Before you re-create the cursor, set the grid's recordsource to "". And then reset it afterwards. Grids get their feelings hurt if you temporarily destroy their underlying cursor.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform