Back to Devexpress

Sort Data in Vertical Grid

aspnet-116256-components-vertical-grid-concepts-data-shaping-and-manipulation-sorting.md

latest1.3 KB
Original Source

Sort Data in Vertical Grid

  • Jun 21, 2024

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, ASPxVerticalGrid does not sort a row if its data items do not implement the IComparable interface. To sort such rows, you can do one of the following.