Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why 2 Data Blocks for a Column in a Grid
Message
From
11/10/2004 10:25:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/10/2004 15:49:36
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00950271
Message ID:
00950422
Views:
11
>Mike:
>
>OK, I didn't know that part.
>
>But what I have been finding is that if I attempt to reuse a Grid with a different Data File, the ControlSources for the Columns all go blank but the ControlSources for Text1 elements remain intact.
>
>In this case I had built the original grid without a reference to the actual data source e.g. the ControlSource would be called "Price" rather than "Trans1.price".
>
>I thought this would make it easier to adapt it for my cursor "Trantemp" but no way because the ControlSources for each column all evaporate when the RecordSource for the Grid is changed. But the ControlSources for Text1 of each column stay alive where they are useless.

My trick to swap tables under the grid is to have a readwrite cursor for its recordsource. Then when I need to use a different set of data, I zap this cursor and append new data into it. The grid remains intact and I have no problems.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform