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.v20.1.Core.dll

Declaration

public bool AllowSorting { get; set; }
Public Property AllowSorting As Boolean

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