Skip to main content
A newer version of this page is available. .
Tab

ASPxGridBehaviorSettings.AllowSort Property

Gets or sets whether grid data can be sorted.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(true)]
public bool AllowSort { get; set; }

Property Value

Type Default Description
Boolean **true**

true, to enable data sorting; otherwise, false.

Property Paths

You can access this nested property as listed below:

Remarks

Find control-specific information (for ASPxGridView, ASPxCardView or ASPxVerticalGrid) in the sections below.

ASPxGridView

Use the AllowSort property to specify whether data sorting is allowed. You can control the sorting availability for a particular column by using the GridDataColumnSettings.AllowSort property.

Note

Data grouping requires data sorting to be performed, so disabling data sorting results in disabling grouping.

Online Demo

Grid - Sorting Data

ASPxCardView

Use the AllowSort property to specify whether data sorting is allowed. You can control the sorting availability for a particular column by using the GridDataColumnSettings.AllowSort property.

Online Demo

Card View - Sorting Data

ASPxVerticalGrid

Use the AllowSort property to specify whether data sorting is allowed. You can control the sorting availability for a particular column by using the GridDataColumnSettings.AllowSort property.

Online Demo

Vertical Grid - Sorting Data

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowSort property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also