DataControlBase.PreserveSorting Property

Gets or sets whether clicking a column header clears the existing sort settings. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll


public bool PreserveSorting { get; set; }

Property Value

Type Description

true, to preserve sorting by other columns when clicking a column header; otherwise, false.


If the PreserveSorting property is set to true, clicking a column’s header doesn’t clear sorting by other columns. If the PreserveSorting property is set to false, hold the SHIFT key when clicking a column’s header to preserve the existing sort settings.

To learn more, see Sorting.

See Also