Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Losing grid formatting
Message
De
07/03/2006 09:08:10
 
 
À
06/03/2006 19:33:13
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01099587
Message ID:
01102049
Vues:
20
Hello,

"But what about any column's properties, any non-standard controls (combos, checkboxes) in them... you didn't show an automatic way to restore them. You had code written to do that for a specific editbox. If that editbox had any code in it, you'd have to subclass it for your code to work - which isn't the case with safe selects."

They column's aren't rebuild if you unbind their controlsources, so no code or properties for columns/controls in the columns are lost and thus also need rebuilding.

"I.e. you're talking about a workaround for a grid rebuild, and I'm talking about completely avoiding such a rebuild."

No - my example just shows that ... it avoids grid rebuilding by using the code in the Lock()/Unlock() methods.

"Still, your three methods only restore the controlsources and rowsource, but not the specific controls and other properties. The grid is lost and reborn, a tabula rasa."

... see above ...

"You still haven't convinced me it woudln't lose dynamic* column properties, non-default controls, code in them etc etc. No time to try, though, busy these days."

Not?! .. i thought the example would be enough ... , now it isn't my job to convince someone .. if you have a need for it try it out ... it works (I know since i've used it extensivly in an app)

Regards
Christian
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform