Skip to main content

ColumnHeaderClickEventArgs.AllowSorting Property

Gets or sets whether it is allowed to sort by the column’s values.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public bool AllowSorting { get; set; }

Property Value

Type Description

true to allow sorting; otherwise, false.


The code sample below shows how to disable sorting by the column’s values:

void TableView_ColumnHeaderClick(object sender, DevExpress.Xpf.Grid.ColumnHeaderClickEventArgs e) {
    e.AllowSorting = false;
    e.Handled = true;
See Also