Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column substitution
Message
 
À
08/11/2006 10:39:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Conférences & événements
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01168026
Message ID:
01168121
Vues:
15
>Hi. Is it possible to substitute grid fields "on the fly". Note that the fields both exist when the screen is loaded.
>
>What I am trying to do: allow my end-user toggle between Retail and Rental pricing.
>
>Thanks, Randy

Why not just change the control source in code.
 With Thisform.grdMyGrid
if llUseRetail = .T.
  .Column1.ControlSource = 'mytable.Retail'
else
  .Column1.ControlSource = 'mytable.Rental'
endif
.Refresh()
EndWith
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform