lets say im binding a tree to a dataset.
Is there a way to say that the KEY of the node will be This Column of the DataTable .... ?
You could do something like this:
private void ultraTree1_InitializeDataNode(object sender, InitializeDataNodeEventArgs e) { e.Node.Key = e.Node.Cells["Key Field"].Text; }
the only problem with this is that the handler is called when the tree loads ..... I'm using a texteditor with ButtonRight = DropDown ... and using the Tree as Control.
So In the BeforeEditorDropDown event I need to select the Node base on the textEditor value, and the only way I found to find a Node is GetNodeByKey.
But the BeforeEditorDropDown is called before the InitializeDataNode .......