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

Grid Multi Sort

Hi, can the grid data be sorted on multiple columns?

Thanks!!

3 Replies

DP Dhinesh Pandiyan M Syncfusion Team January 25, 2010 11:15 AM UTC

Hi Asman,

Thanks for using Syncfusion products.

Grid Data Control supports multicolumn sorting. You can sort the grid data against more than one column by clicking the desired column headers holding the Ctrl key.

We can sort the multiple column in the code behind also. Use the below code,

dataGrid.Model.View.SortDescriptions.Add(new SortDescription("CustomerID", ListSortDirection.Ascending));
dataGrid.Model.View.SortDescriptions.Add(new SortDescription("CustomerName", ListSortDirection.Ascending));

Please let us know if you have any other questions.

With Regards,
Dhinesh Pandiyan


AS Asman February 16, 2010 07:36 PM UTC

I see that the first selection is sorted. The second selection with CTRL pressed shows the sort arrow image but the data is not sorted as it changes. Am i missing anything?

Thanks!


KV Karthik Vishnu R Syncfusion Team February 17, 2010 05:54 AM UTC

Hi Asman,

Thanks for using Syncfusion products.

This seems to be a bug. To resolve this issue please create a DirectTrac incident with the forum title as Incident Header. Our development team will update you with necessary details.

Let us know if you need more details.

Regards,
Karthik

Loader.
Live Chat Icon For mobile
Up arrow icon