maui-devexpress-dot-maui-dot-datagrid-dot-gridcolumn-6c5b306d.md
Gets or sets whether end users can sort data by the column. This is a bindable property.
Namespace : DevExpress.Maui.DataGrid
Assembly : DevExpress.Maui.DataGrid.dll
NuGet Package : DevExpress.Maui.DataGrid
public bool? AllowSort { get; set; }
| Type | Description |
|---|---|
| Nullable<Boolean> |
true if users can sort data by the column; false if user cannot sort data by the column; if null, inherits the setting from the DataGridView.AllowSort property.
|
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