Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only