Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retaining Grid Properties
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00249339
Message ID:
00249359
Views:
26
>Thanks for the idea. Unfortunately, it did not work.
>
>
>>Try setting the recordsource propert to '' before making changes to the cursor and then setting it back to the name of your cursour after you are done.
>>
>>>Help!!!
>>>We are trying to create a grid from a table which is created dynamically based on a user selection. Everytime we set the recordsource property of the grid to this table, we lose all previously set properties of the columns. All coulmns appear resized and difficult to read unless manually re-adjusted. Without going through storing previous properties to arrays and then restoring them, is there another easier way to restore properties??? The field names for the table created will always be the same.
>>>
>>>Any help will be appreciated.
>>>
>>>Thanks,
>>>Binoy Warrier

You need to use .RecordSource = SPACE(0)
Don't use "".

This has been a long known issue with VFP grids and searching through long past messages here will find much to say regarding this issue and ways around it.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform