Skip to main content

CardViewCustomColumnSortEventArgs Class

Provides data for the ASPxCardView.CustomColumnSort event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public class CardViewCustomColumnSortEventArgs :


If a column’s GridDataColumnSettings.SortMode property is set to ‘Custom’, the ASPxCardView’s data can be sorted by this column using custom algorithms. To implement custom sorting, handle the ASPxCardView.CustomColumnSort event. The CardViewCustomColumnSortEventArgs class provides data for these events.

When handling the ASPxCardView.CustomColumnSort event, the result indicates whether one card should be positioned above or below another card. The result is specified by the GridCustomColumnSortEventArgs.Result property.

The GridCustomColumnSortEventArgs.ListSourceRowIndex1 and GridCustomColumnSortEventArgs.ListSourceRowIndex2 properties specify the card indexes in the underlying data source.

To indicate that the comparison operation was handled, and no default processing is required, set the GridCustomColumnSortEventArgs.Handled property to true. Otherwise, the default comparison mechanism will be invoked after your event handler has been called, and this will override the custom result.

See Also