We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to programmatically select nodes in GridTreeControl

Thread ID:





104734 Aug 13,2012 04:10 PM UTC Aug 21,2012 09:50 AM UTC WPF 1
Tags: GridControl
Albert Gao
Asked On August 13, 2012 04:10 PM UTC

Hi.  How can I programmatically select nodes in GridTreeControl?
I tried Node.IsSelected = true but that doesn't work.


Ramesh V [Syncfusion]
Replied On August 21, 2012 09:50 AM UTC


Thanks for your interest in Syncfusion products.

We have analyzed your query and by applying IsSelected to true is not enough to make a node as selected node.  We should add the node to the SelectedNodes collection then only the node is set to selected node.

By using the following code we can achieve you requirements.

Code Snippet[C#]:


    treeGrid1.InternalGrid.Nodes[index].IsSelected = true;




Also we have prepared a sample for this and please find the sample under the following location.

Sample: http://www.syncfusion.com/downloads/Support/DirectTrac/97834/GTCSelectedNode-2135014629.zip


Please let us know if this helps.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon