Skip to main content
A newer version of this page is available. .

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.v19.2.dll

Declaration

public bool PreserveSorting { get; set; }

Property Value

Type Description
Boolean

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

Remarks

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