Back to Devexpress

OptionsLayoutTreeList.RemoveOldColumns Property

windowsforms-devexpress-dot-xtratreelist-dot-optionslayouttreelist-57c50eb8.md

latest2.2 KB
Original Source

OptionsLayoutTreeList.RemoveOldColumns Property

Gets or sets whether the columns that exist in a layout when it’s restored, but that don’t exist in the current control, should be discarded or added to the control.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Columns")]
[XtraSerializableProperty]
public bool RemoveOldColumns { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
<DXCategory("Columns")>
Public Property RemoveOldColumns As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to discard the columns that exist in the layout being restored, but don’t exist in the current control; false to add these columns to the control.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to RemoveOldColumns
TreeList

.OptionsLayout .RemoveOldColumns

|

Remarks

This option affects how the control’s layout is restored. If it’s set to true , the columns that exist in the layout being loaded, but do not exist in the current control, will not be re-created. Otherwise, these columns will be added to the control.

See Also

OptionsLayoutTreeList Class

OptionsLayoutTreeList Members

DevExpress.XtraTreeList Namespace