Sort Data in Vertical Grid
ASPxVerticalGrid allows its data to be sorted by an unlimited number of rows.
To enable the sorting feature, set the row’s GridDataColumnSettings.AllowSort property to true
. If this property is set to Default, the row’s behavior is controlled by ASPxVerticalGrid’s ASPxGridBehaviorSettings.AllowSort option.
Note
By default, ASPx
- Manually implement the IComparable interface for row data items.
- Implement custom row sorting. For this purpose, set the row’s Grid
Data property toColumn Settings. Allow Sort true
, set the GridData property to Custom, and implement a custom sorting algorithm within the ASPxColumn Settings. Sort Mode Vertical event handler.Grid. Custom Row Sort