Skip to main content

DataViewBase.ColumnChooserColumns Property

Gets a collection of hidden columns displayed in the legacy Column Chooser. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public ReadOnlyCollection<ColumnBase> ColumnChooserColumns { get; protected set; }

Property Value

Type Description

A collection of hidden columns displayed in the legacy Column Chooser.


The ColumnChooserColumns collection stores columns if their BaseColumn.Visible property is set to false, and their ColumnBase.ShowInColumnChooser property is set to true.

The following code sample creates a ListBoxEdit and binds it to the ColumnChooserColumns collection:

<dxg:GridControl Name="grid">
      <dxg:TableView Name="view" ... />
          <dxg:GridColumn FieldName="Name"/>
          <dxg:GridColumn FieldName="City"/>
          <dxg:GridColumn FieldName="Visits" Visible="False"/>
          <dxg:GridColumn FieldName="Birthday" Visible="False" ShowInColumnChooser="False"/>
<GroupBox Header="Column Chooser Columns">
    <dxe:ListBoxEdit ItemsSource="{Binding ColumnChooserColumns, ElementName=view}" 

Refer to the Show and Hide Columns topic for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColumnChooserColumns property.


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.

See Also