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.
There are two events associated with sorting in xamGrid™. These events have the suffix “ing” or “ed” appended to them, reflecting the order in which they occur. The sorting events allow you to perform some custom business logic before or after a column is sorted.
ColumnSorting Event – The moment right before a column is sorted, the ColumnSorting event fires. This event can be cancelled if your certain conditions are not met.
ColumnSorted Event – This event fires after the column is sorted.
These events allow you to control how your end users interact with the sorting columns feature of the xamGrid control. You can cancel the ColumnSorting event which would not allow your end user to sort on that column. The ColumnSorted event allows you to see which column your end user sorted.