All docs
V20.2
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
You are viewing help content for pre-release software. This document and the features it describes are subject to change. Switch to the current version.

ExtendedColumnChooserControl Class

The Column Chooser control allows users to show and hide the GridControl's columns at runtime.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.2.dll

Declaration

public class ExtendedColumnChooserControl :
    GridColumnChooserControlBase
Public Class ExtendedColumnChooserControl
    Inherits GridColumnChooserControlBase

Remarks

The GridControl displays the Column Chooser in a separate window. To add the Column Chooser to the same window as the GridControl, create an ExtendedColumnChooserControl object:

View Example

  1. Users can open the Column Chooser window from a column header's context menu. To prevent this, remove the Show Column Chooser button from the menu:

    <Window
    xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
    ...>
    
    <dxg:TableView x:Name="view" >
        <dxg:TableView.ColumnMenuCustomizations>
            <dxb:RemoveAction ElementName="{x:Static dxg:DefaultColumnMenuItemNames.ColumnChooser}"/>
        </dxg:TableView.ColumnMenuCustomizations>
    </dxg:TableView>
    
  2. Add a Column Chooser to the window:

    <dxg:ExtendedColumnChooserControl Owner="{Binding ElementName=view}"
                                      FlowDirection="{Binding Owner.FlowDirection, 
                                                      RelativeSource={RelativeSource Self}}"/>
    

Inheritance

Object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
Control
ColumnChooserControlBase
DevExpress.Xpf.Grid.GridColumnChooserControlBase
ExtendedColumnChooserControl
See Also