Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox in grid 'uncheckable'
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00952596
Message ID:
00952623
Views:
8
if the controlsource of the column is different by the one of the control you use u should set the boud property of column to .f.


>Grid:
>
>RecordSource = users
>RecordSourceType = 1 - Alias
>ReadOnly = .F.
>
>
>Column1:
>
>ControlSource = users.sendmsg
>CurrentControl = chkntm1
>ReadOnly = .F.
>Sparse = .F.
>Bound = .T.
>
>
>Column1.Chkntm1:
>
>ControlSource = users.sendmsg
>ReadOnly = .F.
>Enabled = .T.
>
>
>>which is the controlsource of the column to which they are bounded ? maybe it's a function and not just a simple field!
>>
>>>I added them at design time (visually). The checkboxes DO show up when the form is run. They just act as if they're ReadOnly or Disabled or something.
>>>
>>>>Did you add the checkboxes "visually" at design time, or rather programmatically at runtime?
>>>>If the latter, my guess would be a missing grid.ColumnX.Check1.Visible=.T.
>>>>
>>>>
>>>>hth
>>>>-Stefan
>>>>
>>>>>In my form Load method, I create a cursor:
>>>>>
>>>>>CREATE CURSOR USERS (USERNAME C(30), LOCK L, userid n(5,0), sendmsg L)
>>>>>
>>>>>
>>>>>I have a grid on my form that is bound to this cursor. The grid has 3 columns, two of which are using checkbox controls as their Current Control value. The checkbox columns both have sparse = .F.. Both checkbox columns have ReadOnly = .F. while the last column (with the default textbox control and sparse = .T.) has ReadOnly = .T.. The grid itself is set to ReadOnly = .F.
>>>>>
>>>>>When I run my form, the checkboxes appear correctly (much rejoicing) but I'm not able to check/uncheck either of the checkboxes in any of the rows.
>>>>>
>>>>>What do I need to do to be able to allow the checkboxes to be checked/unchecked?
>>>>>
>>>>>Thanks for your help.
Previous
Reply
Map
View

Click here to load this message in the networking platform