Results 1 to 3 of 3
  1. #1
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Treeview - sorting (A2K SR1)

    I am using a treeview control to detail data. The issue is that at lower levels, the data isn't sorted. Is there an easy way to get the treeview results at lower level to sort. I tried to set the OrderBy property of the treeview but it didn't work.

    Can someone steer me in the right direction?

    Thanks
    Regards,

    Gary
    (It's been a while!)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Treeview - sorting (A2K SR1)

    I assume you use some kind of recordset to fill each level. Try using Order By in each of these recordsets.

  3. #3
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Treeview - sorting (A2K SR1)

    Thanks Hans. I originally tried doing this but just realized I sorted on the incorrect recordset. Thus, I couldn't figure out why it wouldn't work. The treeview is sorted properly now.

    Thanks again.
    Regards,

    Gary
    (It's been a while!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •