Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How can i swap two consecutive treeview items (including their "children")

Posted on 2003-03-18
Medium Priority
Last Modified: 2010-04-04

Hi everbody !

How can i swap two consecutive treeview items (including their "children")

For example: Swapping   [ 2-3 ]

Initial treeview:                       After swap:

1                                       1  
|                                       |      
2---                                    3
|   |                                   |
3   21                                  2---
|                                       |   |
4                                       4   21

Question by:atstef

Accepted Solution

jackb022197 earned 200 total points
ID: 8166168
Please take a look at the MoveTo method of the TTreeNode (which is the TTreeView.Items[x] property object type)



Expert Comment

ID: 9316692
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question