Back to Devexpress

LayoutViewOptionsCustomization.AllowSort Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewoptionscustomization-c51bec86.md

latest3.0 KB
Original Source

LayoutViewOptionsCustomization.AllowSort Property

Gets or sets a value specifying whether end-users can sort data.

Namespace : DevExpress.XtraGrid.Views.Layout

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public bool AllowSort { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property AllowSort As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if end-users can sort data; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowSort
LayoutView

.OptionsCustomization .AllowSort

|

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.

See Also

AllowSort

Sorting

End-User Capabilities: Sorting

LayoutViewOptionsCustomization Class

LayoutViewOptionsCustomization Members

DevExpress.XtraGrid.Views.Layout Namespace