Back to Devexpress

DataControlBase.DefaultSorting Property

wpf-devexpress-dot-xpf-dot-grid-dot-datacontrolbase-8355bb98.md

latest1.7 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public string DefaultSorting { get; set; }
vb
Public Property DefaultSorting As String

Property Value

TypeDescription
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

DataControlBase Class

DataControlBase Members

DevExpress.Xpf.Grid Namespace