Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Columns Resizing After Packing Table
Message
From
30/01/2004 09:19:57
 
 
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:
00872283
Views:
16
This behavior you're dealing with is a "feature" of VFP. From my experience, when you reset the record source property after packing the table, VFP basically treats the event as a brand new table being joined to the grid and dumps the previous settings. As someone else mentioned, you can store off the column widths and column control settings to an array before you set the recordsource property to "". Then when you restore the connection, loop through the array and reset the columns widths and control sources. You can cosmetically set the form's lockscreen setting to true at the beginning of the process and then to false when your done to minimize any "blinking" that may occur.

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform