Hi. I have tree control with a structure already in it.

A function returns a string that matches one of the items in the tree control structure (They are all Unique), and I need to select that item in the tree. It doesn't matter if the code underlying a selection change runs or not, only that the item identified by the string is seen to be selected.

I am having real problems with this. To start with I'm not sure how to find the actual item in the first place, at least not without running through the entire tree structure and trying to match the label of each tree item to the string that I have.

Even if I were able to do this, I'm still in the dark about how to select the item.

Can anyone help please



Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.