Hi Lance,
You could scroll the TreeViewAdv from top to bottom by setting the last node as the SelectedNode of the tree and EnsureVisibleSelectedNode property to true.
This will bring the invisible node into visible state by scrolling to the SelectedNode. And also if you select the node programmatically in button click event or any other control, TreeViewAdv will lose the focus and the selection will be hidden. So that you may need to set the HideSelection property to false for displaying the selection of the node even it lose the focus.
Code:
//select first node
private void button1_Click(object sender, System.EventArgs e) { this.treeViewAdv1.SelectedNode=this.treeViewAdv1.Nodes[0];
//this.treeViewAdv1.Focus();
}
//select last node
private void button2_Click(object sender, System.EventArgs e) { this.treeViewAdv1.SelectedNode = this.treeViewAdv1.Nodes[this.treeViewAdv1.Nodes.Count-1];
//this.treeViewAdv1.Focus();
}
Please take a look at the attached sample which illustrates the above functionality and let me know if this helps you.
TopToBottom
Thanks for your interest in Syncfusion products.
Regards,
Deepa