Hi Jubin,
You could sort all the nodes in a treeViewAdv by using the following code snippet.
private void button2_Click(object sender, System.EventArgs e)
{
if(this.treeViewAdv1.Parent.HasChildren)
{
this.treeViewAdv1.Nodes.Sort();
}
foreach(TreeNodeAdv tna in this.treeViewAdv1.Root.Nodes)
{
if(tna.HasChildren)
{
tna.Nodes.Sort();
}
}
}
Please take a look at the attached sample and let me know if this helps you.
Regards,
Deepa.T.S.
Sorting0.zip