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

To save nodes order in a tree view

Thread ID:





53606 Dec 16,2006 09:41 AM UTC Dec 18,2006 03:29 PM UTC WinForms 1
Tags: Tools
Asked On December 16, 2006 09:41 AM UTC


How to save the order of child nodes in a parent node when drag and dropped.

Here is the problem Iam facing.
I have a TreeView with only 1 parent node called 'Root' in which 4 child nodes as 'A','B','C' and 'D' in the same order. I can drag 'D' and drop above node 'B'. I works fine but when saved to data base and retrived the order does not changed, it remains as A, B, C, D.
Please help me over this.


Murugan [Syncfusion]
Replied On December 18, 2006 03:29 PM UTC

Hi Praveen,

Thanks for choosing Syncfusion products.

Please store TreeNodeAdv.Index value in the database. It gives the position of the TreeNodeAdv in the parent's tree node collection. Please load the tree node in the order of Index value ( Ascending order ).

Please let me know if the issue is resolved.

Murugan P.S


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

This page will automatically be redirected to the 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