Back to Devexpress

TreeListOptionsCustomization.AllowSort Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionscustomization-f3c8d0d5.md

latest3.3 KB
Original Source

TreeListOptionsCustomization.AllowSort Property

Gets or sets whether or not end-users can sort data within this Tree List.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true if sorting is enabled; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowSort
TreeList

.OptionsCustomization .AllowSort

|

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.

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/TreeList/TreeListItemControlProvider.cs#L41

csharp
tree.OptionsCustomization.AllowQuickHideColumns = false;
tree.OptionsCustomization.AllowSort = false;
tree.OptionsPrint.AutoWidth = false;

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/TreeList/TreeListItemControlProvider.vb#L45

vb
tree.OptionsCustomization.AllowQuickHideColumns = False
tree.OptionsCustomization.AllowSort = False
tree.OptionsPrint.AutoWidth = False

See Also

TreeListOptionsCustomization Class

TreeListOptionsCustomization Members

DevExpress.XtraTreeList Namespace