Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm using an aga.controls.treeviewadv component. I haven' t used it before. I have added a NodeCheckBox to the treeView nodeControls, but the check box is not selected when clicking. I set the NodeCheckBox control DataPropertyName to the name of System.Windows.Forms.CheckState property on the node object, but it is not working. Could you please tell me why the check box is not responding the user click?

What I have tried:

Here is the node class where the property is defined:

public ref class AgaTreeFeatureNode : public Aga::Controls::Tree::Node
{
public:
AgaTreeFeatureNode(System::String^ text) : Aga::Controls::Tree::Node(text)
{
this->Description = text;
}

property System::Windows::Forms::CheckState^ Checked;
};

And then in designer I set the NodeCheckBox DataPropertyName to "Checked".

this->nodeCheckBox1->DataPropertyName = L"Checked";
Posted
Updated 19-Aug-16 7:34am

1 solution

There a different bugs possible. One is that the controls is that some other controls is above your checkbox, or mouse input in the box is disabled or is routed to some other control like connected to another control. Maybe some typo.

The easiest solution is most to delete the checkbox and create a new one and retry.
 
Share this answer
 
Comments
Member 11472457 22-Aug-16 6:45am    
Thanks very much for replying. Could you please tell me how I can add OnCheckBoxStateChenged event i.e. the event which is fired whenever the user selects/unselects the checkbox.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900