Click here to Skip to main content
14,868,570 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have to sort a flex grid on the clicking of a column,If certain rows having same values then that rows should sort on the another column. Guys plz help me out.
Posted
Updated 11-Jan-12 8:17am
v2
Comments
ChandraRam 11-Jan-12 15:01pm
   
What have you tried so far?
richa.benzene 12-Jan-12 14:08pm
   
on the click of column i am calling a quick sort function that sorts the flexgrid based on the column either in ascending or descending.Now If certain rows of that columns are same then that rows should sort based upon another column that i wanted to do but till now i am only able to sort basis of one column
Sergey Alexandrovich Kryukov 11-Jan-12 22:59pm
   
Not a question.
--SA

1 solution

OK - couple of things... you do not need a quick sort routine. I think the component has a Sort property - look this up.

To sort on multiple columns, you can add a hidden column to the grid that contains a concatenation of data from each column that you want to include in the sort, in the field order that you want.

HTH
   

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