本文介绍了为什么nodecheckbox没有响应用户点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在使用aga.controls.treeviewadv组件。我以前没用过它。我已将一个NodeCheckBox添加到treeView nodeControls,但单击时未选中该复选框。我将NodeCheckBox控件DataPropertyName设置为节点对象上的System.Windows.Forms.CheckState属性的名称,但它不起作用。你能否告诉我为什么复选框没有响应用户点击?



我尝试过:



这是定义属性的节点类:



public ref class AgaTreeFeatureNode:public Aga :: Controls :: Tree :: Node

{

public:

AgaTreeFeatureNode(System :: String ^ text):Aga :: Controls :: Tree :: Node (文字)

{

this->描述=文字;

}



属性系统:: Windows :: Forms :: CheckState ^已选中;

};



然后在设计师中我设置了NodeCheckBox DataPropertyName为Checked。



this-> nodeCheckBox1-> DataPropertyName = LChecked;

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";

推荐答案


这篇关于为什么nodecheckbox没有响应用户点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 14:25