windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistoptionsfind-0fea55d2.md
Gets or sets whether to expand a node if its child nodes contain the search string.
Namespace : DevExpress.XtraTreeList.Columns
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean ExpandNodesOnSearch { get; set; }
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property ExpandNodesOnSearch As DefaultBoolean
| Type | Default | Description |
|---|---|---|
| DefaultBoolean | Default |
true to expand a node if its child nodes contain the search string; otherwise, false. The Default value is equivalent to true.
|
Available values:
| Name | Description | Return Value |
|---|---|---|
| True |
The value is true.
|
0
| | False |
The value is false.
|
1
| | Default |
The value is specified by a global option or a higher-level object.
|
2
|
You can access this nested property as listed below:
| Object Type | Path to ExpandNodesOnSearch |
|---|---|
| TreeList |
.OptionsFind .ExpandNodesOnSearch
|
The ExpandNodesOnSearch property is in effect if the ColumnViewOptionsFind.Behavior property is set to Search.
When a user starts to search with the ExpandNodesOnSearch option enabled, the Tree List expands all nodes whose child nodes match the search query:
See Also