Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding control to grid at runtime
Message
De
28/03/2005 17:15:05
 
 
À
28/03/2005 16:48:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
00999550
Vues:
32
>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

You need to make the EditBox visible when you add it.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform