Wednesday, January 11, 2012

ASP.Net : Treeview Find method, What is Key ?

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.











1 comment: