ASPxGridBehaviorSettings.AllowSort Property
Specifies whether a user can sort data in a grid.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v23.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Remarks
Grid controls allow users to sort data by multiple columns. Set the AllowSort
property to false
to disable this functionality. Use the GridDataColumnSettings.AllowSort property to control sorting availability at the column level.
<dx:ASPxGridView ID="grid" runat="server">
<SettingsBehavior AllowSort="false">
<%--...--%>
</dx:ASPxGridView>
For more information on sorting in a particular control, refer to the following topics:
Online Demos
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.