Skip to main content

DataControlBase.DefaultSorting Property

Gets or sets the name of a data field whose values are sorted by default. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public string DefaultSorting { get; set; }

Property Value

Type Description

A String value that specifies the name of a data field.


The DefaultSorting property specifies the data field (column) by which data is always sorted. The end user can change the sort order but cannot clear sorting on this column. When data is sorted by multiple columns, a column specified by the DefaultSorting is the last column against which data is sorted (if it is not a grouped column).

To learn more, see Sorting and End-User Capabilities: Sorting

See Also