Skip to main content

GridColumn.AllowSort Property

Gets or sets whether end-users are allowed to sort data by the column’s values. This is a bindable property.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

[XtraSerializableProperty]
public DefaultBoolean AllowSort { get; set; }

Property Value

Type Description
DefaultBoolean

A DefaultBoolean enumeration value that specifies whether end-users can sort data by the column’s 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).

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

End-users can sort data by tapping a column header or tapping Sort Ascending or Sort Descending in a menu that appears when they touch and hold a column cell or header. If the grid’s GridControl.AllowSort property is set to true, both these methods are available. Otherwise, end-users cannot apply data sorting.

Individual columns provide the AllowSort property that you can set to ‘True’ or ‘False’ to override the default behavior specified by the grid. This can be useful when it is required to prevent end-users from sorting data by values of specific columns.

If the AllowSort property is set to ‘Default’, the capability to sort data is controlled by the grid’s GridControl.AllowSort property.

See Also