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!