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