BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
/// <summary> /// To Scroll to bottom /// </summary> private void buttonAdv1_Click(object sender, EventArgs e) { this.multiColumnTreeView1.EnsureVisible(this.multiColumnTreeView1.Nodes[this.multiColumnTreeView1.Nodes.Count - 1]); } /// <summary> /// To Scroll to Up /// </summary> private void buttonAdv2_Click(object sender, EventArgs e) { this.multiColumnTreeView1.EnsureVisible(this.multiColumnTreeView1.Nodes[0]); } |
Hi, how can I scroll to particular node in a TreeviewAdv?
this.treeViewAdv1.SelectedNode = this.treeViewAdv1.Nodes[0]; //To show the particular node this.treeViewAdv1.Nodes[0].BringIntoView(); this.treeViewAdv1.SelectedNode = this.treeViewAdv1.Nodes[this.treeViewAdv1.Nodes.Count - 1]; //To show the particular node this.treeViewAdv1.Nodes[this.treeViewAdv1.Nodes.Count - 1].BringIntoView(); |