Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridColumn.AllowSort Property

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

#Declaration

C#
public bool? AllowSort { get; set; }

#Property Value

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.

#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