Treeview control in Asp.net provides a find method to find a collection of nodes based on given key.
Like : TreeView1.Find(key , searchAllChildren);
Or
TreeView1Nodes[0].Nodes.Find(key , searchAllChildren);
For search based on key while populating the treeview you need to set name of all nodes, Node name will be treated as key while Find.
Like : TreeView1.Find(key , searchAllChildren);
Or
TreeView1Nodes[0].Nodes.Find(key , searchAllChildren);
For search based on key while populating the treeview you need to set name of all nodes, Node name will be treated as key while Find.
TreeView find method for search node items
ReplyDelete