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.v23.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public string DefaultSorting { get; set; }

Property Value

Type Description
String

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

Remarks

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