windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsselection-53fa1d85.md
Gets or sets whether multiple nodes can be selected.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool MultiSelect { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property MultiSelect As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to allow multiple nodes to be selected; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to MultiSelect |
|---|---|
| TreeList |
.OptionsSelection .MultiSelect
|
For information on how multiple nodes can be selected by end-users and in code, see the Selecting Nodes and Node Selection documents.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MultiSelect 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-treelist-custom-check-nodes-behavior/CS/Example/TreeListCheckHelper.cs#L13
{
treeList.OptionsSelection.MultiSelect = true;
treeList.OptionsView.ShowCheckBoxes = true;
winforms-treelist-custom-check-nodes-behavior/VB/Example/TreeListCheckHelper.vb#L11
Public Sub New(ByVal treeList As TreeList)
treeList.OptionsSelection.MultiSelect = True
treeList.OptionsView.ShowCheckBoxes = True
See Also
TreeListOptionsSelection Class