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:
01133759
Views:
16
This is getting weirder!

I just tried creating the whole grid visually instead and simply setting the recordsource & controlsource later, and I'm realizing that the WHOLE grid is readonly! Even though the properties (grid and column) are explicitly ReadOnly = .F. AND Enabled = .T.

What would make a whole grid uneditable???


>Hi Joe, try this:
>1)
>
>SELE ("TmpMatList")
>WITH This.MyGrid1
>	.GridLines    = 3
>	.RecordSource = "TmpMatList"
>ENDWITH
>
>2) are you sure so field's name is Picked?
>
>MartinJ
>
>>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
>>
Independant Foxpro Developer
Spring Hill, FL
jpirola@tampabay.rr.com
352/686-8373
Previous
Reply
Map
View

Click here to load this message in the networking platform