Skip to main content
A newer version of this page is available. .
Tab

GridDataColumnSettings.AllowSort Property

Gets or sets whether the column’s (row’s for ASPxVerticalGrid) values can be sorted.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean AllowSort { get; set; }

Property Value

Type Default Description
DefaultBoolean **Default**

One of the DefaultBoolean enumeration values.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

Property Paths

You can access this nested property as listed below:

Show 90 property paths
Library Object Type Path to AllowSort
ASP.NET Controls and MVC Extensions CardViewBinaryImageColumn
.Settings.AllowSort
CardViewButtonEditColumn
.Settings.AllowSort
CardViewCheckColumn
.Settings.AllowSort
CardViewColorEditColumn
.Settings.AllowSort
CardViewColumn
.Settings.AllowSort
CardViewComboBoxColumn
.Settings.AllowSort
CardViewDateColumn
.Settings.AllowSort
CardViewDropDownEditColumn
.Settings.AllowSort
CardViewEditColumn
.Settings.AllowSort
CardViewHyperLinkColumn
.Settings.AllowSort
CardViewImageColumn
.Settings.AllowSort
CardViewMemoColumn
.Settings.AllowSort
CardViewProgressBarColumn
.Settings.AllowSort
CardViewSpinEditColumn
.Settings.AllowSort
CardViewTextColumn
.Settings.AllowSort
CardViewTimeEditColumn
.Settings.AllowSort
CardViewTokenBoxColumn
.Settings.AllowSort
GridViewDataBinaryImageColumn
.Settings.AllowSort
GridViewDataButtonEditColumn
.Settings.AllowSort
GridViewDataCheckColumn
.Settings.AllowSort
GridViewDataColorEditColumn
.Settings.AllowSort
GridViewDataColumn
.Settings.AllowSort
GridViewDataComboBoxColumn
.Settings.AllowSort
GridViewDataDateColumn
.Settings.AllowSort
GridViewDataDropDownEditColumn
.Settings.AllowSort
GridViewDataHyperLinkColumn
.Settings.AllowSort
GridViewDataImageColumn
.Settings.AllowSort
GridViewDataMemoColumn
.Settings.AllowSort
GridViewDataProgressBarColumn
.Settings.AllowSort
GridViewDataSpinEditColumn
.Settings.AllowSort
GridViewDataTextColumn
.Settings.AllowSort
GridViewDataTimeEditColumn
.Settings.AllowSort
GridViewDataTokenBoxColumn
.Settings.AllowSort
GridViewEditDataColumn
.Settings.AllowSort
MVCxCardViewColumn
.Settings.AllowSort
MVCxGridViewColumn
.Settings.AllowSort
MVCxGridViewColumn<RowType>
.Settings.AllowSort
MVCxVerticalGridRow
.Settings.AllowSort
MVCxVerticalGridRow<ColumnType>
.Settings.AllowSort
VerticalGridBinaryImageRow
.Settings.AllowSort
VerticalGridButtonEditRow
.Settings.AllowSort
VerticalGridCheckRow
.Settings.AllowSort
VerticalGridColorEditRow
.Settings.AllowSort
VerticalGridComboBoxRow
.Settings.AllowSort
VerticalGridDataRow
.Settings.AllowSort
VerticalGridDateRow
.Settings.AllowSort
VerticalGridDropDownEditRow
.Settings.AllowSort
VerticalGridEditDataRow
.Settings.AllowSort
VerticalGridHyperLinkRow
.Settings.AllowSort
VerticalGridImageRow
.Settings.AllowSort
VerticalGridMemoRow
.Settings.AllowSort
VerticalGridProgressBarRow
.Settings.AllowSort
VerticalGridSpinEditRow
.Settings.AllowSort
VerticalGridTextRow
.Settings.AllowSort
VerticalGridTimeEditRow
.Settings.AllowSort
VerticalGridTokenBoxRow
.Settings.AllowSort
ASP.NET Bootstrap Controls BootstrapCardViewBinaryImageColumn
.Settings.AllowSort
BootstrapCardViewButtonEditColumn
.Settings.AllowSort
BootstrapCardViewCheckColumn
.Settings.AllowSort
BootstrapCardViewColorEditColumn
.Settings.AllowSort
BootstrapCardViewColumn
.Settings.AllowSort
BootstrapCardViewComboBoxColumn
.Settings.AllowSort
BootstrapCardViewDateColumn
.Settings.AllowSort
BootstrapCardViewDropDownEditColumn
.Settings.AllowSort
BootstrapCardViewEditColumn
.Settings.AllowSort
BootstrapCardViewHyperLinkColumn
.Settings.AllowSort
BootstrapCardViewImageColumn
.Settings.AllowSort
BootstrapCardViewMemoColumn
.Settings.AllowSort
BootstrapCardViewProgressBarColumn
.Settings.AllowSort
BootstrapCardViewSpinEditColumn
.Settings.AllowSort
BootstrapCardViewTagBoxColumn
.Settings.AllowSort
BootstrapCardViewTextColumn
.Settings.AllowSort
BootstrapCardViewTimeEditColumn
.Settings.AllowSort
BootstrapGridViewBinaryImageColumn
.Settings.AllowSort
BootstrapGridViewButtonEditColumn
.Settings.AllowSort
BootstrapGridViewCheckColumn
.Settings.AllowSort
BootstrapGridViewColorEditColumn
.Settings.AllowSort
BootstrapGridViewComboBoxColumn
.Settings.AllowSort
BootstrapGridViewDataColumn
.Settings.AllowSort
BootstrapGridViewDateColumn
.Settings.AllowSort
BootstrapGridViewDropDownEditColumn
.Settings.AllowSort
BootstrapGridViewEditDataColumn
.Settings.AllowSort
BootstrapGridViewHyperLinkColumn
.Settings.AllowSort
BootstrapGridViewImageColumn
.Settings.AllowSort
BootstrapGridViewMemoColumn
.Settings.AllowSort
BootstrapGridViewProgressBarColumn
.Settings.AllowSort
BootstrapGridViewSpinEditColumn
.Settings.AllowSort
BootstrapGridViewTagBoxColumn
.Settings.AllowSort
BootstrapGridViewTextColumn
.Settings.AllowSort
BootstrapGridViewTimeEditColumn
.Settings.AllowSort

Remarks

If the AllowSort property is set to Default, the sorting availability is controlled by the control’s ASPxGridBehaviorSettings.AllowSort property.

Note

The grouping functionality does not work if the AllowSort property is set to false.

Example

<dx:ASPxGridView ID="grid">
    <SettingsBehavior AllowSort="true">
    <Columns>
        <dx:GridViewDataColumn FieldName="ContactName" SortIndex="2" SortOrder="Ascending" >
            <Settings AllowSort="false" SortMode="DisplayText" />
        </dx:GridViewDataColumn>
        ...
    </Columns>
</dx:ASPxGridView>

Online Demo

ASPxGridView - Sort Data

See Also