Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3550
sort by different order on group
posted

I use the command

basicInfraGrid1.DisplayLayout.Bands[0].SortedColumns.Add("DIFFERENCE_TYPE", false, true);

to group by difference_type

I get an the for the group difference_type by the the column difference type.

so the order of the group  difference_type is:

"Full match"

"No match"

"One difference"

 

But I want it to be :

"No match"

"One difference"

"Full match"

How to do? 

 

Parents
  • 469350
    Offline posted

    Hi,

    You can do this in a couple of different ways. I assume that, whether the column is grouped or not, you always want to sort the column in the same order. So the easiest thing to do would to create a class that implements IComprer and set the SortComparer on the column to an instance of that class.

Reply Children