Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Treeview - disabling checkboxes

4 views
Skip to first unread message

Doogie

unread,
Apr 2, 2010, 9:38:29 PM4/2/10
to
Hi,
I am using an old Treeview control (version 6.0) and it doesn't appear
to have the ability to disable checkboxes or grey them out from what I
can tell (if I'm wrong, could someone tell me how?)

Since it doesn't, I'm at least trying to write code in the node click
event that will prevent the user from changing the value of the
checkbox when I need it to be disabled. So I have code that sets the
Checked status back to what it originally was before the user clicked
on that node.

The problem is that my code works fine, but that as soon as the event
terminates, it undoes what I did and sets the node to the Checked
status that caused the event to fire in the first place. I have no
way that I can see to trap this event and do what I want.

Is there something I may be missing? Also, if this is not the right
group - if you could tell me which group would be better that would be
great. Thanks!

0 new messages