[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Collapse]Windows 10 App Controls
  Prerequisites
 [Expand]Getting Started
 [Expand]Controls
 [Expand]Themes and Color Schemes
  Localization
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Core
  [Expand]DevExpress.Data
  [Expand]DevExpress.Data.Filtering
  [Expand]DevExpress.Mvvm
  [Expand]DevExpress.Mvvm.UI
  [Expand]DevExpress.UI.Xaml
  [Expand]DevExpress.UI.Xaml.Charts
  [Expand]DevExpress.UI.Xaml.Controls
  [Expand]DevExpress.UI.Xaml.Controls.Internal.Pdf
  [Expand]DevExpress.UI.Xaml.Editors
  [Expand]DevExpress.UI.Xaml.Editors.Native
  [Expand]DevExpress.UI.Xaml.Gauges
  [Collapse]DevExpress.UI.Xaml.Grid
   [Expand]AddingNewEventArgs Class
    AutoFilterCondition Enumeration
   [Collapse]ColumnBase Class
     ColumnBase Members
     ColumnBase Constructor
    [Collapse]ColumnBase Properties
      ActualAllowColumnFiltering Property
      ActualAllowMoving Property
      ActualAllowResizing Property
      ActualAllowSorting Property
      ActualCellStyle Property
      ActualDataWidth Property
      ActualHeaderStyle Property
      ActualHeaderTemplateSelector Property
      ActualHeaderToolTipTemplate Property
      ActualHeaderWidth Property
      ActualShowCriteriaInAutoFilterRow Property
      ActualTotalSummaryContentStyle Property
      ActualWidth Property
      AllowAutoFilter Property
      AllowColumnFiltering Property
      AllowEditing Property
      AllowFocus Property
      AllowMoving Property
      AllowResizing Property
      AllowSearchPanel Property
      AllowSorting Property
      AutoFilterCondition Property
      AutoFilterCriteria Property
      AutoFilterEditorStyle Property
      AutoFilterValue Property
      CellStyle Property
      ColumnChooserHeaderCaption Property
      ColumnFilterMode Property
      ColumnPosition Property
      Commands Property
      CustomColumnFilterPopupTemplate Property
      DataControl Property
      FieldName Property
      FieldType Property
      FilterPopupMode Property
      FixedWidth Property
      HasLeftSibling Property
      HasRightSibling Property
      HasTotalSummaries Property
      Header Property
      HeaderCaption Property
      HeaderStyle Property
      HeaderTemplate Property
      HeaderTemplateSelector Property
      HeaderToolTip Property
      HeaderToolTipTemplate Property
      HeaderToolTipVisibility Property
      HorizontalContentAlignment Property
      HorizontalHeaderContentAlignment Property
      ImmediateUpdateAutoFilter Property
      ImmediateUpdateColumnFilter Property
      IsFirst Property
      IsLast Property
      IsSorted Property
      IsSortedBySummary Property
      MaxWidth Property
      MinWidth Property
      Name Property
      RoundDateTimeForColumnFilter Property
      ShowCriteriaInAutoFilterRow Property
      ShowEmptyDateFilter Property
      ShowInColumnChooser Property
      ShowValidationAttributeErrors Property
      SortIndex Property
      SortMode Property
      SortOrder Property
      TabStop Property
      Tag Property
      TotalSummaryContentStyle Property
      TotalSummaryText Property
      UnboundExpression Property
      UnboundType Property
      VerticalContentAlignment Property
      Visible Property
      VisibleIndex Property
      Width Property
    [Expand]ColumnBase Events
    [Expand]ColumnBase Methods
   [Expand]ColumnCollection Class
    ColumnFilterMode Enumeration
   [Expand]CustomColumnSortEventArgs Class
    CustomColumnSortEventHandler Delegate
   [Expand]DataControlBase Class
    ExceptionMode Enumeration
    FilterPopupMode Enumeration
    FindMode Enumeration
   [Expand]GridCell Class
   [Expand]GridCheckBoxColumn Class
   [Expand]GridColumnBase Class
   [Expand]GridColumnCollection Class
   [Expand]GridColumnCommands Class
   [Expand]GridColumnDataEventArgs Class
    GridColumnDataEventHandler Delegate
   [Expand]GridComboBoxColumn Class
   [Expand]GridControl Class
   [Expand]GridControlBase Class
   [Expand]GridControlCommands Class
    GridControlNavigationStyle Enumeration
   [Expand]GridDateColumn Class
   [Expand]GridMaskColumn Class
   [Expand]GridSpinEditColumn Class
    GridSummaryItemAlignment Enumeration
   [Expand]GridTemplateColumn Class
   [Expand]GridTextColumn Class
   [Expand]GridTextColumnBase Class
   [Expand]GridTotalSummaryData Class
    GroupSummaryDisplayMode Enumeration
   [Expand]HighlightingSettings Class
   [Expand]InitNewRowEventArgs Class
   [Expand]InvalidRowExceptionEventArgs Class
    MultiSelectMode Enumeration
    NewItemRowPosition Enumeration
   [Expand]RowEventArgs Class
    RowEventHandler Delegate
    ScrollAnimationMode Enumeration
    ShowFilterPanelMode Enumeration
    ShowSearchPanelMode Enumeration
   [Expand]SummaryItemBase Class
  [Expand]DevExpress.UI.Xaml.Grid.Native
  [Expand]DevExpress.UI.Xaml.Layout
  [Expand]DevExpress.UI.Xaml.Layout.Base
  [Expand]DevExpress.UI.Xaml.Layout.Internal
  [Expand]DevExpress.UI.Xaml.Layout.VisualElements
  [Expand]DevExpress.UI.Xaml.Map
  [Expand]DevExpress.UI.Xaml.Ribbon
  [Expand]DevExpress.Utils
  [Expand]DevExpress.XtraGrid
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

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.v18.1.dll

Expanded Syntax

Property value

Type: ColumnSortMode
A ColumnSortMode enumeration value that specifies the sort mode.
The default is ColumnSortMode.Default.

Expanded 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.

Expanded See Also

Is this topic helpful?​​​​​​​