Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add check box to grid using coding
Message
From
01/12/2004 05:14:13
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
01/12/2004 00:34:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00965965
Message ID:
00965997
Views:
6
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform