Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding control to grid at runtime
Message
De
28/03/2005 16:48:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Adding control to grid at runtime
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00999545
Message ID:
00999545
Vues:
53
I am trying to fill a grid's properties at run-time (since the record source has to change). I am loading the grid column properties in to a form array property, but am having trouble when I try to add a new editbox in to a column. I need to have the scroll bars in the edit box. This is the code:
thisform.Pageframe1.Page2.grdList.recordsource='mgmtst'  
thisform.Pageframe1.Page2.grdList.Columns[lnCnt].Addobject('edtDescr','vcgridedit')
thisform.Pageframe1.Page2.grdList.Columns[lnCnt].Currentcontrol='edtDescr'
thisform.Pageframe1.Page2.grdList.Columns[lnCnt].controlsource='descr'
When I run the form, this column does not show any data. It is just grey. I've turned sparse on / off with the same result.

any ideas?

thanks

bonnie
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform