OptionsColumnLayout.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.Utils

Assembly: DevExpress.Data.v20.1.dll

Declaration

[DefaultValue(true)]
public bool RemoveOldColumns { get; set; }
<DefaultValue(True)>
Public Property RemoveOldColumns As Boolean

Property Value

Type Default Description
Boolean

true

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:

Show 23 property paths
Library Object Type Path to RemoveOldColumns
Cross-Platform Class Library OptionsLayoutGrid
.Columns.RemoveOldColumns
PivotGridOptionsLayout
.Columns.RemoveOldColumns
WinForms Controls AdvBandedGridView
.OptionsLayout.Columns.RemoveOldColumns
BandedGridView
.OptionsLayout.Columns.RemoveOldColumns
ColumnView
.OptionsLayout.Columns.RemoveOldColumns
CardView
.OptionsLayout.Columns.RemoveOldColumns
GridView
.OptionsLayout.Columns.RemoveOldColumns
LayoutView
.OptionsLayout.Columns.RemoveOldColumns
TileView
.OptionsLayout.Columns.RemoveOldColumns
TileView
.OptionsLayout.Columns.RemoveOldColumns
TileViewOptionsLayout
.Columns.RemoveOldColumns
WinExplorerView
.OptionsLayout.Columns.RemoveOldColumns
WinExplorerView
.OptionsLayout.Columns.RemoveOldColumns
WinExplorerViewOptionsLayout
.Columns.RemoveOldColumns
PivotGridControl
.OptionsLayout.Columns.RemoveOldColumns
PropertyGridControl
.OptionsLayout.Columns.RemoveOldColumns
VGridControl
.OptionsLayout.Columns.RemoveOldColumns
VGridControlBase
.OptionsLayout.Columns.RemoveOldColumns
VGridOptionsLayout
.Columns.RemoveOldColumns
ASP.NET Controls and MVC Extensions ASPxPivotGrid
.OptionsLayout.Columns.RemoveOldColumns
PivotGridWebOptionsLayout
.Columns.RemoveOldColumns
MVCxPivotGrid
.OptionsLayout.Columns.RemoveOldColumns
Reporting XRPivotGrid
.OptionsLayout.Columns.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.

If the RemoveOldColumns property is set to false, these columns will be added to the control. Note that the OptionsColumnLayout.StoreAllOptions must be set to true to allow this behavior.

See Also