Topic: Sort By Hidden Column
Hi All,
Some assistance if anyone has a bit of time please and I attach a simple dummy project to demonstrate the problem.
1.
I have a table ('people') with 3 fields
- 'firstname'
- 'lastname'.
- calculated field ('firstname' + 'lastname').
2.
In the tablegrid, I only want to show one column (the 'calculated field') but it needs to be sorted by 'lastname'. So I add a second column ('lastname') but make it invisible.
3.
By clicking on Column0 header ('calculated field'), I am trying to force (by script) the tablegrid to sort (ascending / descending) by the hidden Column1 ('lastname').and not by Column0 (the 'calculated field').
4.
But so far, I've been unable to find a way to do this and no matter what I've tried, it always sorts by Column0.
If anyone has any ideas or suggestions, I'd be grateful.
Thanks,
Derek.