ASPxCardView.SortBy(CardViewColumn, ColumnSortOrder) Method
Sorts data by the specified column values.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public ColumnSortOrder SortBy(
CardViewColumn column,
ColumnSortOrder value
)
#Parameters
Name | Type | Description |
---|---|---|
column | Card |
A Card |
value | Column |
One of the Column |
#Returns
Type | Description |
---|---|
Column |
One of the Column |
#Remarks
The ASPxCardView allows data sorting by multiple columns. Any previous sorting is not cleared when calling the SortBy method. The new sort order applies an additional sorting condition to the one previously applied. The newly sorted column is appended to the collection of sorted columns. Its index within the collection can be obtained using the CardViewColumn.SortIndex property.
You can also use the overloaded SortBy method that allows the column’s position among sorted columns to be specified.
Sorting is allowed if the ASPxGridBehaviorSettings.AllowSort property is set to true
.