Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the recordsource of a grid
Message
 
To
23/06/1998 22:01:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00111106
Message ID:
00111120
Views:
12
>How can I change the recordsource of a grid to another table with a the same structure.
>Assume tableA is the current recordsource
>If I go...
>grid.recordsource= tableB
>grid.refresh
>
>Some of the columns show data from the new table and most contain current record data from tableA for every record of tableB.
>This is despite the fact that the controlsource for each column does not contain the table alias.

David, when you change Grid.RecordSource all Column.ControlSourse are gone. You are supposed to reset them in your code.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform