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

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

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 Overview and End-User Capabilities: Sorting

See Also