Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing A Grid On The Fly
Message
From
22/02/2001 20:12:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00478467
Message ID:
00478662
Views:
26
>When I put the oGrid.RecordSource line BEFORE the AddColumns loop, I get all
>fields in the table, then the fields I added.
>
>When I put the oGrid.RecordSource line AFTER the AddColumns loop, regardless
>of what I specified as the control source in the loop, the ControlSources are
>always set up first field in the table to last.
>
>What am I doing wrong here?

Having a grid.recordsource, IMO, means you want the automatic setting of "all columns, one per field". Try to simply omit the assignment of the recordsource, since you are doing it in a non-automatic way, by assigning each column's individual source.

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