Jump to content

Search Treeview and Scroll to required position


Recommended Posts

Posted

Hi,

I have a tree view with a lot of nodes. 

Based on other input I am able to expand the tree at an appropriate location and select a specified node.

But what isn't happening is the tree view is not scrolling to the appropriate location.

Couldn't work out how to do this programmatically.

Thanks

Posted

I haven't tried now and my exprience with trees is limited, but a quick look shows two possible options:

  1. The Top Left Visible Cell property, combined with the Number of Rows property, which will definitely work, but will require some computation to determine what it should be.
  2. The Open/Close.Ensure Visible method, which should probably work.
  • Like 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.