Re: Sorting rows in Grids

2009-03-30 Thread Ian Bambury
Sorting data in the grid and swapping all the cells about gets very slow very quickly as the number of cells increases. You might be better off with an arraylist (for rows) of arraylists (for widgets in cells) and then sort the rows-arraylist according to the value of a certain column widget. Then

Sorting rows in Grids

2009-03-30 Thread fatjack1...@googlemail.com
Hi everyone, Is there a way to sort a column in say Ascending order using a grid. Basically, I have a column called 'Total Cost' that adds together some values for each row, and I now need to sort the rows with the highest first. Is there a simple way to do this? Regards, Jack --~--~-~--