Version

Please note that this control has been retired and is now obsolete to the XamDataGrid control, and as such, we recommend migrating to that control. It will not be receiving any new features, bug fixes, or support going forward. For help or questions on migrating your codebase to the XamDataGrid, please contact support.

Multi-Column Sorting

The xamGrid™ control allows single column sorting or multi column sorting. Single column sorting is enabled by default. Multi-column sorting allows your end users to perform primary, secondary, tertiary (and so on) sorts on columns.

Your end users can use the multi column sorting feature by first performing a sort on a primary column.

Then while the end user holds down the Control key, they click and sort a secondary column.

The end user repeats this process until they sort as many columns as needed. An example multi column sorting scenario is when the end user wants to first sort on the Category column. Assuming there are multiple occurrences of each category, the end user then performs a secondary sort on the UnitsInStock column. Now the end user sees each category along with the corresponding units in stock sorted per category.

The following code demonstrates how to enable multi column sorting on your xamGrid.

In XAML:

<ig:XamGrid.SortingSettings>
   <ig:SortingSettings AllowMultipleColumnSorting="True" />
</ig:XamGrid.SortingSettings>

In Visual Basic:

Me.MyGrid.SortingSettings.AllowMultipleColumnSorting = True

In C#:

this.MyGrid.SortingSettings.AllowMultipleColumnSorting = true;
Sorting