Hello!
I have a problem. When I bind data to ultratree with SetDataBinding() I do not know how to set KeyValue of each node. Nodes are created automatically. The problem is because I want to search for a node with GetNodeByKey() method and I have no key values set for nodes.
How can you specifiy ParentKeyValue that hierarchical tree can be created via data binding ?
Thank you
Gregor
What you can do is handle the InitializeDataNode event and set the node's Key.
Yes thank you. It works and I get node with desired key. But when I want to set checkbox in a column of the returned node CheckState on UI is not changed. I do not know why ? Here is the code.
UltraTreeNode node = tvDiagnosisType.GetNodeByKey(Convert.ToString(diagnosisTypeID));
if (node != null)
(node.Cells["Selected"].Column.Editor as CheckEditor).CheckState = CheckState.Checked;
Thank you, Regards, Gregor