ASPxGridBehaviorSettings.AllowSort Property
Gets or sets whether grid data can be sorted.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
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:
Library | Object Type | Path to AllowSort |
---|---|---|
ASP.NET Bootstrap Controls | BootstrapCardView |
|
BootstrapGridView |
|
|
ASP.NET Web Forms Controls | ASPxCardView |
|
ASPxGridView |
|
|
ASPxVerticalGrid |
|
|
GridViewProperties |
|
|
CardViewSettings |
|
|
CardViewSettings<CardType> |
|
|
GridViewSettings |
|
|
GridViewSettings<RowType> |
|
|
MVCxCardView |
|
|
MVCxGridView |
|
|
MVCxGridViewProperties |
|
|
MVCxVerticalGrid |
|
|
VerticalGridSettings |
|
|
VerticalGridSettings<ColumnType> |
|
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
Related Links
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
Related Links
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
Related Links
Related GitHub Examples
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.