Version

Sorting Events

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.

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.