LayoutViewOptionsCustomization.AllowSort Property
Gets or sets a value specifying whether end-users can sort data.
Namespace: DevExpress.XtraGrid.Views.Layout
Assembly: DevExpress.XtraGrid.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **true** | true if end-users can sort data; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to AllowSort |
---|---|
LayoutView |
|
Remarks
In Layout View, end-users can sort data by clicking the Field Sort Button. If the AllowSort option sis set to true, data sorting is enabled. In this instance, it’s possible to prevent data sorting for specific card fields (columns) via the OptionsColumn.AllowSort option.
If the AllowSort property is set to false, Field Sort Button are hidden, so end-users cannot change the sort order. However, data can still be sorted in code.
For information on how end-users can sort data, see End-User Capabilities: Sorting.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowSort property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.