Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement