Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the caption of a CHECKBOX in a Grid column
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00160185
Message ID:
00160220
Views:
23
Hi Barbara,

Thank you. I eventually worked it out but could not get back at my message
to "reply to it" telling people not to bother answering it. Incidentally,
how does one do that, or, even, is it possible to delete one's own
posted messages ?

In case it is of use to anyone on UT, here is the note I made myself
after solving it :

1) Put two CheckBox controls in the grid column, one with the caption you want for a
ticked CheckBox and the other with the caption you want for an un-ticked CheckBox.

2) In each of the CheckBoxes WHEN event put : This.Refresh to ensure that
the CheckBox column cell gets refreshed as you click on it rather than when you
do something else like changing column, row, or scrolling.

2) Set the Column's current control to NONE.

3) Set the Column's DynamicCurrentControl to :

IIF( = .T., "Ticked_CheckBox_Name", "Un-ticked_CheckBox_Name")

4) Go for it !

Michel.

================= Original message follows ========================

>Check the SPARSE property, Michel. Also, you may want to use 2 check boxes, and change the CurrentControl to the one with the correct caption.
>
>HTH
>Barbara
>>Hi All,
>>
>>I remember seeing something about this on UT but at the time
>>I did not pay attention.
>>
>>I have a Grid with CheckBoxes in one of the Column. When the
>>user checks or unchecks a CheckBox I want to the change the
>>Caption of that CheckBox to "YES" (Checked) or SPACE (Unchecked).
>>I do that via the InteractiveChange Event. However, when I do so
>>the caption of all the CheckBoxes in that column change, not just
>>the caption of the one the user clicked on.
>>
>>How can I do it ?
>>
>>Thanks in advance.
>>
>>Michel.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform