Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.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