Wednesday, July 28, 2004 10:12 PM
Your problem can be sloved by using TreeMap/TreeSet.
Let's say Employee Name, Employee ID and Employee Salary have to displayed on Page
On click of Employee ID Header rows have to displayed on the sorted order of Employee ID
In this case put employee ID as key in TreeMap and all rows will be automatically sorted.
Hope this will help you.
Suggest you to make a Model class for the displayable columns.
Thanks and Regards