windowsforms-devexpress-dot-xtratreelist-dot-optionslayouttreelist.md
Gets or sets whether the columns that exist in the current control but do not exist in a layout when it’s restored should be retained.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DefaultValue(true)]
[DXCategory("Columns")]
[XtraSerializableProperty]
public bool AddNewColumns { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
<DXCategory("Columns")>
Public Property AddNewColumns As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to retain the columns that exist in the current control’s layout but don’t exist in the layout being restored; false to destroy such columns.
|
You can access this nested property as listed below:
| Object Type | Path to AddNewColumns |
|---|---|
| TreeList |
.OptionsLayout .AddNewColumns
|
This option affects how the control’s layout is restored. If it’s set to true the columns that exist in the current control’s layout but do not exist in the layout being restored will be retained. Otherwise, these columns will be destroyed.
See Also