[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
   [Expand]ColumnBase Class
   [Expand]ColumnCollection Class
    ColumnFilterMode Enumeration
   [Expand]CustomColumnSortEventArgs Class
    CustomColumnSortEventHandler Delegate
   [Collapse]DataControlBase Class
     DataControlBase Members
    [Collapse]DataControlBase Properties
      ActiveEditor Property
      ActualShowFilterPanel Property
      AllowColumnFiltering Property
      AllowColumnMoving Property
      AllowCommitOnValidationAttributeError Property
      AllowEditing Property
      AllowLeaveInvalidEditor Property
      AllowSorting Property
      AutoGenerateColumns Property
      AutoScrollOnSorting Property
      BottomAdditionalRowsCount Property
      CellStyle Property
      ColumnHeaderStyle Property
      ColumnHeaderTemplate Property
      ColumnHeaderTemplateSelector Property
      ColumnHeaderToolTipTemplate Property
      Commands Property
      CurrentGrid Attached Property
      CurrentItem Property
      CurrentViewChangedListener Attached Property
      FilterCriteria Property
      FilterPanelText Property
      FilterString Property
      FixedSummariesLeft Property
      FixedSummariesRight Property
      FixedTotalSummaryItemTemplate Property
      FocusedBorderTemplate Property
      HasValidationError Property
      HeadersData Property
      IncrementalLoadingThreshold Property
      IsEditing Property
      IsFilterEnabled Property
      IsSynchronizedWithCurrentItem Property
      ItemClickCommand Property
      ItemNavigationMode Property
      ItemNavigationTargetParameterBinding Property
      ItemNavigationTargetType Property
      ItemsSource Property
      KeepFocusedRowOnUpdate Property
      NavigationStyle Property
      PreserveSorting Property
      SearchColumns Property
      SearchDelay Property
      SearchPanelAllowFilter Property
      SearchPanelClearOnClose Property
      SearchPanelCloseDelay Property
      SearchPanelCriteriaOperatorType Property
      SearchPanelFindFilter Property
      SearchPanelFindMode Property
      SearchPanelHighlightingSettings Property
      SearchPanelHighlightResults Property
      SearchString Property
      SelectedItem Property
      SelectedItemHandle Property
      SelectedItems Property
      SelectionMode Property
      ShowColumnHeaders Property
      ShowFilterPanelMode Property
      ShowFixedTotalSummary Property
      ShowSearchPanelMode Property
      ShowTotalSummary Property
      ShowValidationAttributeErrors Property
      SummariesIgnoreNullValues Property
      TotalSummaryContentStyle Property
      TotalSummaryData Property
      TotalSummaryItemTemplate Property
      ValidationError Property
      VirtualizingCacheHeight Property
      VirtualizingCacheWidth Property
      VisibleRowCount Property
    [Expand]DataControlBase Events
    [Expand]DataControlBase Methods
    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)

DataControlBase.AllowSorting Property

Gets or sets whether an end-user can sort data. This is a dependency property.

Namespace:DevExpress.UI.Xaml.Grid
Assembly:DevExpress.UI.Xaml.Grid.v18.1.dll

Expanded Syntax

Property value

Type: Boolean
true to allow an end-user to sort data; otherwise, false.

Expanded Remarks

End-users are allowed to sort data if the grid's AllowSorting property is set to true. Individual columns provide the ColumnBase.AllowSorting property, allowing the default behavior specified by the grid to be overridden. Setting this property to 'True' or 'False' overrides the default behavior. This can be useful when it is required to prevent an end-user from sorting data by the values of specific columns.

If the AllowSorting property is set to true, end-users can sort data by the desired column by clicking its header.

If a column's ColumnBase.AllowSorting property is set to 'Default', the ability to sort data by its values is controlled by the grid's AllowSorting property. In this instance, to obtain whether an end-user can sort data by the current column, use the ColumnBase.ActualAllowSorting property.

Expanded See Also

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