hi guys,
i use this code to select a node in treeview by value but it's not work, what's wrong?
private void selectNodeByValue(TreeView tree, String value)
{
for (int i = 0; i < tree.Nodes.Count; i++)
{
foreach (TreeNode node in tree.Nodes)
{
if (node.Value == value)
{
node.Select();
node.Expand();
}
}
}
}
Go to the complete details ...