We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Multilevel Sorting in GridControl

Hi, How do I implement multi-level sort in Grid Control ? the user can sort on one of the columns and within the sorted rows, we need columns to be internally sorted as per content. e.g User sorts by Location, and the grid is also sorted by name column within the display. Thanks, Supriya

1 Reply

AD Administrator Syncfusion Team October 15, 2004 01:39 PM UTC

You will need to implement an IComparer that takes into account multiple columns. I do not have a sample of doing exactly that, but Here is a sample that sorts column 4 by string length using a custom IComparer.

Loader.
Live Chat Icon For mobile
Up arrow icon