Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Base Grid on Cursor -- Any problems? Any Tricks?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00317290
Message ID:
00319426
Views:
22
>>The "empty string" method also resets the ControlSources of the grid columns. If you are selecting all the fields in the RecordSource in the exact order you are going to display them in the grid, this is not an issue.
>
>Thanks for pointing that out. In this case, the cursor I am using does have all the fields in the exact order of the grid, but that might not be true the next time.

Another little "gotcha" with any method that relies on order is that the columns can become disordered unless they all have controlsources individually assigned. I.e., a user moves (drags-drops) column 3 to column 1. Then does a fresh query - the data may be out of order now, with the wrong header showing - depending on how your code works, and only if columns are movable. But it certainly can happen (been there, done it...)
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform