Ordering a treeview

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

The CF treeview doesn't have a "sorted" property like the full .Net version
does. What is the best method to sort a treeview in the CF? Thanks for any
suggestions.
 
Hi, Jon

If the tree data is coming from a database, I just sort
the data in my SQL statement and populate the tree from
there. If the data set is fairly small, it shouldn't take
too long to repopulate the tree based on various criteria
(name, date, time, etc.).

HTH

Flynn
 
Agreed, unfortunately, the data is being entered by a user. I guess I could
send the data to a database first and then re-read it, that just seems like
a waste of resources. Thanks, it at least got my head thinking about it.


Flynn Arrowstarr said:
Hi, Jon

If the tree data is coming from a database, I just sort
the data in my SQL statement and populate the tree from
there. If the data set is fairly small, it shouldn't take
too long to repopulate the tree based on various criteria
(name, date, time, etc.).

HTH

Flynn
 
Hi, Jon.

Yeah, that's what I did in eVB as well. It's a pain, but
since there's not a built-in method (and you'd still have
to write the sorting routines anyway), it's a start. =)

Flynn
-----Original Message-----
Agreed, unfortunately, the data is being entered by a user. I guess I could
send the data to a database first and then re-read it, that just seems like
a waste of resources. Thanks, it at least got my head thinking about it.
 
Back
Top