Hi Jane,
Sorry for the inconvenience caused.I do see that the nodes that are not present in the visible area do not get selected.
To solve this problem, please use the following code snippet.
private void button1_Click(object sender, System.EventArgs e)
{
foreach (TreeNodeAdv node in this.treeViewAdv1.Root.Nodes)
{
this.treeViewAdv1.SelectedNodes.Add(node);
TreeNodeAdv lastNode = node.LastNode;
while (lastNode != null)
{
this.treeViewAdv1.ExtendSelectionTo(lastNode);
lastNode = lastNode.LastNode;
}
}
this.treeViewAdv1.Focus();
}
Please take a look at the modified attached sample,and let me know if this meets your requirements.
Thanks for your continued interest in Syncfusion products.
Regards,
Deepa.T.S
SelectAllnodes0.zip