Click to See Complete Forum and Search --> : Sorting in hashtable and datatable
rchiu5hk
May 26th, 2009, 11:01 PM
Dear all,
How can I apply specified sorting to hashtable and datatable?
I hope it can be hashtable.sort(col(2)) or datatable.sort(col(3)).
Please tell me how it should be the case!!!
dannystommen
May 27th, 2009, 02:58 AM
I don't know what data you are storing in the datatable, but you can replace the hashtable by a SortedDictionary.
BigEd781
May 27th, 2009, 03:06 AM
Yeah, if you need it sorted, you don't really want a HashTable anyway.
rchiu5hk
May 27th, 2009, 04:41 AM
Datatable--> sorting
(1) Change the datatable to dataview.
(2) Dataview can have the sorting.
(3) after sorting, change dataview to datatable.
HashTable --> Sorting
(1) use sortedlist().
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.