Skip to main content

GridControl.AllowSort Property

Gets or sets whether end-users are allowed to sort data in the grid. This is a bindable property.

Namespace: DevExpress.Mobile.DataGrid

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

Declaration

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

Property Value

Type Description
Boolean

true, to allow end-users to sort data; otherwise, false.

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 the menu that appears when they touch and hold a column cell or header. If the AllowSort property is set to true, both these methods are available. Otherwise, end-users cannot apply data sorting.

To override the default behavior specified by the grid’s AllowSort property for an individual column, use the GridColumn.AllowSort property of the corresponding column object.

See Also