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.

To save nodes order in a tree view

Thread ID:





53606 Dec 16,2006 04:41 AM Dec 18,2006 10:29 AM Windows Forms 1
Tags: Tools
Asked On December 16, 2006 04:41 AM


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 10:29 AM

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.

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.