Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add check box to grid using coding
Message
De
01/12/2004 05:14:13
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
 
 
À
01/12/2004 00:34:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00965965
Message ID:
00965997
Vues:
5
Hi Kusnardi,

>Hi John,
>Thanks for your help. However I tried to include the controlsource it shows datatype error where my data is contain either 1 or 0.
>e.g.
>thisform.mygrid.column1.controlsource = "myCursor.status"
>thisform.mygrid.column1.mycheck.controlsource = "myCursor.status"
>Any idea? thanks.
>regards,
>Kusnardi

I think that it solves your problem. Try:
WITH THISFORM.myGrid.Column(n)
    .Addobject("myCheckBox", "CheckBox")
    .CurrentControl = "myCheckBox"    
    .Sparse = .F.
    .mycheck.Value = 0

    .controlsource = "myCursor.status"
    .mycheck.controlsource = "myCursor.status"
ENDWITH
Good luck!
Erick
Força Sempre!
Strength Always!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform