ColumnBase.SortMode Property
Gets or sets how the column’s data is sorted when sorting is applied to it. This is a dependency property.
Namespace: DevExpress.UI.Xaml.Grid
Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
#Declaration
[DefaultValue(ColumnSortMode.Default)]
[XtraSerializableProperty]
public ColumnSortMode SortMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Column |
**Default** | A Column |
Available values:
Name | Description |
---|---|
Default | Sorts the column’s data according to the type of the editor assigned to the column. |
Value | Sorts the column’s data by the column’s edit values (these are synchronized with the bound data source’s values). |
Display |
Sorts the column’s data by the column’s display text (the strings displayed within the column’s cells). |
Custom | Enables custom sorting of a column’s data. To implement custom sorting, handle the Grid The Custom mode also enables custom grouping of rows when grouping is applied against the current column. To implement custom grouping, handle the Grid |
#Remarks
The SortMode property specifies the algorithm used to sort the column’s data (by display text, edit value or using a custom sorting algorithm).
To provide custom sorting, set the SortMode property to ‘Custom’ and handle the GridControl.CustomColumnSort event.