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
public bool? AllowSort { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
|
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.