corelibraries-devexpress-dot-xtragrid.md
Lists the values that specify how a column’s data should be sorted.
Namespace : DevExpress.XtraGrid
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public enum ColumnSortMode
Public Enum ColumnSortMode
| Name | Description |
|---|---|
Default |
The actual sort mode is determined by a control. See the property description for more details.
|
| Value |
Sorts the column’s data by the column’s edit values (these are synchronized with the bound data source’s values).
|
| DisplayText |
Sorts the column’s data by the column’s display text (the strings displayed within the column’s cells).
|
| Custom |
Applies sort options specified in the CustomColumnSort event handler.
In data grids, this mode also applies group options from the CustomColumnGroup event handler.
|
The following properties accept/return ColumnSortMode values:
| Library | Related API Members |
|---|---|
| WinForms Controls | GridColumn.SortMode |
| TreeListColumn.SortMode | |
| WPF Controls | ColumnBase.SortMode |
| TreeViewControl.SortMode | |
| ASP.NET Web Forms Controls | ASPxGridBehaviorSettings.SortMode |
| GridDataColumnSettings.SortMode |
See Also