Sorting In Treeview

free web hosting
Free Web Hosting > Computers & Tech > Programming > Programming General > BASIC / Visual Basic (.NET)

Sorting In Treeview

WeaponX
Hi, I have a TreeView created that allows users to add new Nodes into it. How can it be coded so that it allows the user to sort it, or better yet, auto-sort it each time it loads (and whenever a user adds/deletes a node)? Can this be done on a the child nodes under the parent also? For example:

Main/Root Node
Parent (sub root node)
Child Nodes
...maybe more child nodes

So it sorts in the deeper levels accordingly also.

Using Visual Basic 6.

Thanks.

Reply

hatim
Well , i dont know VB at all ..just want to give you some pointers. First , please add the langauge in title. I thought you were asking a question for JAVA Swing ..but its VB6

second start using VB.net 2005. Thre Express Edition is Free (if you dont have any very specifi requirements) with .NET you will have better support options in forums like this one

Last but not least . Check out codeproject.com and MSDN website if you havent already. My guess is that this thing would be piece of cake in VB.net 2005

As for MS and it products are concerned ..if you get a chance ..get rid of them and move on to open source alternatives..like Python/WxWidgets or Ruby.

Reply

WeaponX
Oops...forgot to add VB6 in title wink.gif

Yeah, I tried searching this up online and found some sites in MSDN and codeproject and they gave me good examples too. But they didn't work on my code. I think it might be because I'm using a database file to store the data for each node in the treeview. It might be working differently.

I want to switch to .NET also but heard that it's a overhaul in terms of coding. I'm not really good at VB6 itself laugh.gif I search here and there and usually will find things I could use, but this one got me stumped sad.gif

Took a look at Python before a few years ago when I heard about it but never dove into it. I will see how it works out, but I don't think I'll be converting this VB program to Python since I spent too much time on building it in the first place.

Thanks.

 

 

 


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. treeview sort method in c# - 1.07 hr back. (2)
  2. treeview c# node sorting - 3.98 hr back. (1)
  3. programming tree view vb.net - 12.66 hr back. (1)
  4. .net sorting a treeview - 15.55 hr back. (3)
  5. treecontrol sort nodes - 20.42 hr back. (1)
  6. sort treeview vb.net - 49.46 hr back. (1)
  7. sort treeview nodes vb.net - 56.73 hr back. (1)
  8. how to sort treeview child nodes in .net - 61.91 hr back. (1)
  9. how to sort data in treeview in .net - 62.31 hr back. (1)
  10. .net treeview sort - 65.46 hr back. (1)
  11. c# tree view sorter - 67.74 hr back. (1)
  12. sorting a treeview - 67.87 hr back. (1)
  13. sort treeview web c# - 68.21 hr back. (1)
  14. treeview sorting - 81.19 hr back. (1)
Similar Topics

Keywords : sorting, treeview

  1. Sorting A String Vector
    (0)
  2. Sorting
    How to sort data in arrays- examples given in Java (0)
    Sorting- Using Java Language First of all, why the heck should I care about sorting? Easier
    to present data- it is very frustrating to be looking for some information and it is not in order
    Faster searching algorithms- most searching algorithms require looking at every element in a list
    until the requested one is found, but if it is sorted, you can use binary search (I'll explain
    in another tutorial) to drastically cut search time Less memory for searching- there ARE ways to
    increase search time in unsorted lists (with indexing and such), but these take mu....
  3. Using Leading Zeros And Sorting Data
    Sort data correctly (2)
    The Importance Of Using Leading Zeros Leading zeros are a very important tool for
    sorting and comparing data on computers. What is a leading zero? A leading zero does just what it
    sounds like, it leads the value. For example, lets convert a few numbers to leading zero numbers to
    make the new number 5 digits long. 234 => 00234 456 => 00456 6456 => 06456 12 => 00012 4 => 00004
    677 => 00677 That's great right but why would you do that? This is done for 2 reasons
    actually. The first is to display numbers in a more uniform and easier to read form....
  4. Ascend Descend Sorting
    (1)
    I am at a loss for trying to use javascript to ascend descend sort my columns. Here is the code I
    am trying to sort: CODE {$user } {$user } {$user } {$user }   {$user
    } {ipb.lang } The things that need to be sorted are: 'name', 'army',
    'money'. Want to sort 'rank' by default, which is how the code/database is already
    set. Then when user wants to sort use above in a javascript.....
  5. Sorting A List
    Algorithem Search (14)
    Okay, I'm not looking for code here, just the steps the algorithem would go through. I am
    trying to find the fastest algorithem to sort a list of elements. So far the fastest I have come up
    with is as follows (demonstrated on a five element list). Step List Procedure 0
    dbace this is the starting list 1 bdace compare spots 1 and 2,
    switch if necessary 2 bdace compare spots 5 and 4, switch if necessary 3
    adbce compare spots 1 and 3, switch if necessary 4 adbce c....
  6. Array Sorting
    Does anyone hava a decent JAVA method (21)
    does anyone have a decent JAVA method that will sort an array from smallest-to highest?
    /mellow.gif" style="vertical-align:middle" emoid=":mellow:" border="0" alt="mellow.gif" /> The one
    i'm trying to write doesn't seem to work... or if you could look at mine below, and tell me
    what i did wrong, that'd be nice to.(if it reallllyyyyyyyyy sucks, please dont laugh to loud
    /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> ) This should
    take an array and then calculate how many of a number is in it, add it to the first slots....

    1. Looking for sorting, treeview






*SIMILAR VIDEOS*
Searching Video's for sorting, treeview
advertisement




Sorting In Treeview