bpdace <bp********@gmail.com> wrote:
I have a datasource that is being passed in as a Hashtable. I want to
load in all the Values (strings inside the Value, not the Keys) into a
collumn inside a DataTable. The values need to be sorted
alphabetically. What is the best way to do this? Any help is
appreciated!
ArrayList list = new ArrayList(hashtable.Values);
list.Sort();
That gives you a list of the values in alphabetical order - then you
just need to load them up in whatever way you want.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too