Back to Devexpress

IGridDataColumn.SortMode Property

blazor-devexpress-dot-blazor-dot-igriddatacolumn-f386bc40.md

latest2.0 KB
Original Source

IGridDataColumn.SortMode Property

Specifies how grid data is sorted (by value, by display text, or custom logic is used).

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(GridColumnSortMode.Default)]
GridColumnSortMode SortMode { get; set; }

Property Value

TypeDefaultDescription
GridColumnSortModeDefault

A GridColumnSortMode enumeration value.

|

Available values:

NameDescription
Default

If the column editor is a combo box with specified text and value field names, the Grid sorts column data by display text. Otherwise, the Grid sorts column data by values.

| | Value |

The Grid sorts column data by values.

| | DisplayText |

The Grid sorts column data by display text.

| | Custom |

In this mode, the CustomSort event occurs every time the Grid compares two column values. Handle this event to implement a custom value comparison algorithm.

|

Remarks

Refer to the SortMode property description for additional information and an example.

See Also

IGridDataColumn Interface

IGridDataColumn Members

DevExpress.Blazor Namespace