Skip to main content

ColumnBase.AllowSorting Property

Gets or sets whether an end-user can sort data by the column’s values. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v23.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public DefaultBoolean AllowSorting { get; set; }

Property Value

Type Description

A DefaultBoolean enumeration value that specifies whether an end-user can sort data by the column’s values.

Available values:

Name Description Return Value

The value is true.



The value is false.



The value is specified by a global option or a higher-level object.



End-users are allowed to sort data if the view’s DataViewBase.AllowSorting property is set to true. Individual columns provide the AllowSorting property, allowing the default behavior specified by the view, to be overridden. Setting this property to ‘True’ or ‘False’ overrides the default behavior. This can be useful when it is required to prevent an end-user from sorting data by values of specific columns.

If the AllowSorting property is set to ‘Default’, the ability to sort data is controlled by the view’s DataViewBase.AllowSorting property. In this instance, to obtain whether an end-user can sort data by the current column, use the ColumnBase.ActualAllowSorting property.


If the AllowSorting property is set to false, the grid does not synchronise its sorting and grouping with the ICollectionView.

To learn more, see Sorting.

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


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