Back to Devexpress

DataViewBase.ColumnSortClearMode Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-66843097.md

latest4.2 KB
Original Source

DataViewBase.ColumnSortClearMode Property

Gets or sets the mode of clearing sorting.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ColumnSortClearMode ColumnSortClearMode { get; set; }
vb
Public Property ColumnSortClearMode As ColumnSortClearMode

Property Value

TypeDescription
ColumnSortClearMode

The mode of clearing sorting.

|

Available values:

NameDescription
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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ColumnSortClearMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceSample/MainWindow.xaml#L34

xml
<dxg:GridControl.View>
    <dxg:TableView ColumnSortClearMode="Click"
                   ShowFixedTotalSummary="True"/>

wpf-data-grid-bind-to-infiniteasyncsource/CS/InfiniteAsyncSourceSample/MainWindow.xaml#L38

xml
<dxg:GridControl.View>
    <dxg:TableView ColumnSortClearMode="Click"
                   ShowFixedTotalSummary="True"

wpf-data-grid-use-skip-tokens-to-optimize-paging-EF/CS/MainWindow.xaml#L29

xml
<dxg:GridControl.View>
    <dxg:TableView ColumnSortClearMode="Click"/>
</dxg:GridControl.View>

how-to-bind-to-grpc/CS/InfiniteAsyncSource.GRPC/MainWindow.xaml#L54

xml
<dxg:GridControl.View>
  <dxg:TableView ColumnSortClearMode="Click"
                         ShowFixedTotalSummary="True"

wpf-data-grid-use-virtual-sources-to-bind-to-in-memory-data/CS/MainWindow.xaml#L33

xml
<dxg:GridControl.View>
    <dxg:TableView ColumnSortClearMode="Click"
                   ShowFixedTotalSummary="True"/>

See Also

Sorting

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace