Posted By:
Kady_Ny
Posted On:
Tuesday, November 13, 2001 12:52 PM
The data got back from the ResultSet will be displayed in a table with the first row being the column header. The table will look like this: Name | Address | Phone | C | 1234....|713000| A | 2356....|5010000| etc. When I click on the Name column, I want the data sorted by the name in an ascending order. In this case, the result would be A | 2356 |5010000| C | 1234|7130000| When I click on the column Name again, I want it sorted in descending order. In this case, the result will look like: C | 1234....|713000| A | 2356....|5010000| I want the same thing happen when I click on any oth
More>>
The data got back from the ResultSet will be displayed in a table with the first row being the column header.
The table will look like this:
Name | Address | Phone |
C | 1234....|713000|
A | 2356....|5010000|
etc.
When I click on the Name column, I want the data sorted by the name in an ascending order. In this case, the result would be
A | 2356 |5010000|
C | 1234|7130000|
When I click on the column Name again, I want it sorted in descending order. In this case, the result will look like:
C | 1234....|713000|
A | 2356....|5010000|
I want the same thing happen when I click on any other column.
How can I do this?
Is using List achieve my objectives? If so, how do I store my data retrieved from the ResultSet into List?
<<Less