<ig:XamGrid.SortingSettings> <ig:SortingSettings AllowMultipleColumnSorting="True" /> </ig:XamGrid.SortingSettings>
We recommend that you use the xamDataGrid control instead of the xamGrid control. The xamGrid is being planned for retirement over the next few years and will not receive any new features. We will continue to provide support and critical bug fixes for the xamGrid during this time. For help or questions on migrating your codebase to the xamDataGrid, please contact support.
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;