Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Columns Resizing After Packing Table
Message
From
29/01/2004 14:59:26
 
 
To
29/01/2004 13:54:48
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00871935
Message ID:
00871992
Views:
23
>I'm resetting the RecordSource to "" and then to "MyTable" but the columns resize to what I think is the default size of the field lengths. What gives? I don't want to have to put a bunch of column widths into the grid. Why do they resize? Thanks!
>
>Regards, Renoir

Any time the grid's recordsource changes, if there are no specified column widths, they will resize back to original.

if you're using VFP8, you might (depending on your needs) be able to take advantage of the grid.AutoSize() to resize the grid columns back for you.

an all versions, the quickest way is to store the sizes in an array before removing the recordsource, then restore after rebinding it.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform