Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wizard Created Grid: how2 change?
Message
De
14/06/2011 08:51:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01513637
Message ID:
01514276
Vues:
219
>Hi all,
>
>I've created a form/grid using the wizard. I've also then changed column order, headings etc on the grid. When I run it, the Headings have moved the new order but the data displays in the same original columns.
>
>* I noticed that the grid.column.text.recordsource for each column was empty. I've entered recordsource info for all columns yet still get the same result.
>
>Gotta be a simple issue I *think*. Any experience with this?

Happens occasionally. No other remedy but to rebuild the grid again.
If you have to change grid settings dynamically at run time (and to avoid this kind of issues), good idea is to create grid class capable of rebuilding itself based on custom properties. Normally I set up my grids by setting few custom properties; one for delimited list of cursor columns and second for delimited list of captions for each column header. (Could be more properties depend on grid purpose)
Then I call method which constructs the grid based on these property settings.

HTH
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform