Skip to main content
Tab

ASPxCardView.GetSortedColumns() Method

Returns a collection of columns involved in sorting.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public ReadOnlyCollection<CardViewColumn> GetSortedColumns()

Returns

Type Description
ReadOnlyCollection<CardViewColumn>

The collection of columns involved in sorting.

Remarks

The card view allows data sorting by multiple columns. The GetSortedColumns property provides access to the columns involved in sorting. This property can be used if you need to traverse through the sorted columns to perform operations on them. For example, you may want to change the sort order. Note that this collection is read only; it doesn’t allow columns to be added or removed. To apply or cancel sorting by column values, use the column’s CardViewColumn.SortOrder property.

Sorting is allowed if the ASPxGridBehaviorSettings.AllowSort property is set to true.

See Also