DataGrid: Sort columns or hide columns
Posted on 2004-10-10
I'd like to produce a datagrid with two different modes - one mode would be a conventional sort...clicking the column head toggles between ascending/descending sort.
In the other mode clicking the column header of a given column will cause that column to shrink to 10 pixels wide with all cells containing blanks. Click that column again and it toggles to it's regular width and content.
I'm figuring the best way to indicate mode is a checkbox.
It'd be great if shifting between modes didn't require a trip back to the server but first things first.