DataViewBase.ColumnSortClearMode Property
Gets or sets the mode of clearing sorting.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
| Type | Description |
|---|---|
| ColumnSortClearMode | The mode of clearing sorting. |
Available values:
| Name | Description |
|---|---|
| ClickWithCtrlPressed | Clicking the header while pressing the Ctrl key clears the column’s sorting. |
| Click | Clicking the header enables/disables the column’s sorting. |
Remarks
Clicking a column’s header does not change the sort order if this column allows sorting in one order only. Clicking the header while pressing the Ctrl key clears the column’s sorting.
Set the ColumnSortClearMode property to Click to enable/disable sorting by clicking the column’s header.
Refer to the following help topic for more information: Enable Sort Operations.