Back to Devexpress

ASPxGridBehaviorSettings.AllowSort Property

aspnet-devexpress-dot-web-dot-aspxgridbehaviorsettings-472d1f8c.md

latest2.3 KB
Original Source

ASPxGridBehaviorSettings.AllowSort Property

Specifies whether a user can sort data in a grid.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool AllowSort { get; set; }
vb
<DefaultValue(True)>
Public Property AllowSort As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to enable the sort mode; otherwise, false.

|

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.

aspx
<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

Run Demo: ASPxGridView - Sort Data

Run Demo: ASPxCardView - Sorting

Run Demo: ASPxVerticalGrid - Sorting

See Also

ASPxGridBehaviorSettings Class

ASPxGridBehaviorSettings Members

DevExpress.Web Namespace