Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox not working in grid
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01133691
Message ID:
01133705
Views:
16
>I am having a problem getting a checkbox to work in a grid. I've got a cursor (TmpMatList) that is the result of a query that I created by saying, "...INTO CURSOR TmpMatList NOFILTER READWRITE" (VFP8), then I create the grid, like below...I SEE the checkbox just fine, but no matter what I do, I cannot click it! It looks like it's disabled, but I clearly enable it AND make sure it's not read only. What am I missing???
>
>Thanx everyone!
>
>
>WITH This.MyGrid1
>	.GridLines    = 3
>	.RecordSource = "TmpMatList"
>	.columncount  = 3
>	x=1
>.
>.
>.
>	x=2
>.
>.
>.
>	x=3
>	.Columns(x).ControlSource   = "TmpMatList.Picked"
>	.Columns(x).ReadOnly        = .F.
>	.Columns(x).Header1.caption = "Order"
>	.Columns(x).Header1.FontBold= .T.
>	.Columns(x).Width           = 40
>	.Columns(x).RemoveObject("Text1")
>	.Columns(x).NewObject("Check1", "CheckBox")
>	.Columns(x).Check1.caption  = ""
>	.Columns(x).Check1.Visible  = .T.
>	.Columns(x).Check1.Enabled  = .T.
>	.Columns(x).Check1.ReadOnly = .F.
>	.Columns(x).Sparse          = .F.
>ENDWITH
>
May be you need .Column(x).CurrentControl = 'Check1' ?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform