Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to create a grid with a list of objects as the datasource -- very basic. I also need to add 2 columns that are always fixed. So when the user sorts on one of the columns from the list of objects these 2 columns never sort. Similar to a Sort in Excel after selecting the sort range.

Example:

A B C D
L 1 16.1 12/2/2012
L 2 17.4 3/14/2011
R 3 8.2 5/15/2012
R 4 9.0 10/19/2012

Not sure how well the above grid will show up, but I need columns A and B to always remain in that order while the user sorts columns C and D. Columns C and D will sort together
Posted

1 solution

Seems like you need a custom sorting algorithm, so have a look here:
http://www.zagstudio.com/blog/441#.UU3IDjetqDw[^]

Although I might got your question wrong.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900