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.
Unfortunately, activation email could not send to your email. Please try again.

How to programmatically select nodes in GridTreeControl

Thread ID:





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

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 05:50 AM


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.

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.