Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with a grid
Message
 
À
23/12/2003 08:58:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00861571
Message ID:
00861589
Vues:
16
>this is the code to initialize the grid
>
>and i get this error
>
>Err.mess.:Unknown member CMBPRICE.
>why???
>the control exist
>
>WITH THISFORM.WSgrid1
> .recordsource = "CURSOR_DETAIL"
> .columncount = 5
> .Column1.Header1.caption = "Type"
> .Column2.Header1.caption = "Qty"
> .Column3.Header1.caption = "Section"
> .Column4.Header1.caption = "Item"
> .Column5.Header1.caption = "Square Feet"
>
> .column1.width = 216
> .column2.width = 108
> .column3.width = 108
> .column4.width = 216
> .column5.width = 100
>
> .Column1.ControlSource = "CURSOR_DETAIL.action"
> .Column2.ControlSource = "CURSOR_DETAIL.qty"
> .Column3.ControlSource = "CURSOR_DETAIL.secTion"
> .Column4.ControlSource = "CURSOR_DETAIL.ITEM_CODE"
> .Column5.ControlSource = "CURSOR_DETAIL.squarefeet"
>
>
>
> .Column1.CMBPRICE.RowSource = "VCONTCODE.TYPETRX,DESCR"
> .COLUMN1.CMBPRICE.RowSourceType = 6
>
>
>
> .COLUMN1.Alignment = 0
> *.COLUMN1.TEXT1.Alignment = 0
>ENDWITH


Robert,

You could also add the following:
.Column1.Sparse = .F.
.Column1.CurrentControl = "cmbPrice"
Cheers,

Zoran
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform