Skip to main content
A newer version of this page is available. .

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.v18.2.Core.dll

Declaration

public bool AllowSorting { get; set; }

Property Value

Type Description
Boolean

true to allow sorting; otherwise, false.

Remarks

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