GridColumn.AllowSort Property
Specifies whether end users can sort data by the column.
Namespace: DevExpress.XamarinForms.DataGrid
Assembly: DevExpress.XamarinForms.Grid.dll
NuGet Package: DevExpress.XamarinForms.Grid
Declaration
[XtraSerializableProperty]
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.