Sorting
ASPxCardView allows its data to be sorted by an unlimited number of columns.
To enable the sorting feature, set the column’s GridDataColumnSettings.AllowSort property to True. If this property is set to Default, the column’s behavior is controlled by ASPxCardView’s ASPxGridBehaviorSettings.AllowSort option.
Note
By default, ASPxCardView does not sort a column if its data items do not implement the IComparable interface. To sort such columns, you can do one of the following.
- Manually implement the IComparable interface for column data items.
- Implement custom column sorting. For this purpose, set the column’s GridDataColumnSettings.AllowSort property to true, set the GridDataColumnSettings.SortMode property to Custom, and implement a custom sorting algorithm within the ASPxCardView.CustomColumnSort event handler.