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

GridColumn.AllowSort Property

Specifies whether end users can sort data by the column.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

Declaration

public DefaultBoolean AllowSort { get; set; }

Property Value

Type Description
DefaultBoolean

A value that specifies whether users can sort data by the column.

Available values:

Name
True
False
Default

Remarks

If the DataGridView.AllowSort property is set to true, the grid allows end users to sort data.

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

If the column’s AllowSort property is set to ‘Default’, the grid’s DataGridView.AllowSort property controls whether data can be sorted by the column.

See Also