Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically add combo to grid
Message
De
08/02/2008 10:01:38
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01290797
Message ID:
01290799
Vues:
16
This message has been marked as the solution to the initial question of the thread.
I do it all the time. Check out the sparse property.

sparse=.f.

>Has anyone successfully/reliably added a combo to a grid at run-time.
>The following code works but I don't see the combo, can anyone help?
>WITH .Column5
> .RemoveObject("Text1")
> .AddObject("cboModelId","searchgrd_cbosrch")
> .CurrentControl = "cboModelId"
> .ControlSource = "tmpSiteEquipment.fkmodid"
> .cboModelId.BoundColumn = 3
> .cboModelId.BoundTo = .T.
> .cboModelId.ColumnCount = 3
> .cboModelId.ColumnWidths = "300,300,0"
> .cboModelId.RowSourceType = 6 && Field
> .cboModelId.RowSource = "salmodel.modelnumber,descr,pkmodid"
> .cboModelId.Visible = .T.
>ENDWITH
>TIA
>Trevor
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform