Back to Devexpress

ColumnBase.SortFieldName Property

wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-1ce94734.md

latest1.6 KB
Original Source

ColumnBase.SortFieldName Property

Gets or sets another field by which data is sorted when sorting is applied to the current column.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
String

A string that specifies a field name.

|

Remarks

GridControl’s default sorting and grouping behavior is as follows. On clicking a column header or changing the ColumnBase.SortOrder property, data is sorted by the corresponding field. On grouping against a column, data groups are created based on the values of this column.

The SortFieldName property allows you to change this behavior. When sorting/grouping is applied to a specific column, you can sort/group data against another field instead. To do this, set the SortFieldName property to the required field name.

See Also

ColumnBase Class

ColumnBase Members

DevExpress.Xpf.Grid Namespace