Posted on: 10/31/2012 1:42:24 AM | Views : 252

Hi,
I'm using TreeView Control, my question is how can I find a Node by Value from TreeNode?
Like:
TreeNode FindChildNode(string NodeName, TreeNode tNode)
{
    foreach (TreeNode t in tNode.ChildNodes)
    {
        // TreeNode FindNode = tNode.Find("Value"); // I want here Find Function
        string tText = t.Text;
        if (tText == NodeName)
        {
            pNode = t;
            break;
        }
        else
        {
            FindChildNode(NodeName, tNode);
        }
    }
    return pNode;
}
...

Go to the complete details ...