Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    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.v25.1.dll

    NuGet Package: DevExpress.Wpf.Grid.Core

    #Declaration

    public class ExtendedColumnChooserControl :
        GridColumnChooserControlBase

    #Example

    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:

    WPF Standalone Column Chooser

    View Example: Display a Standalone Column Chooser

    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:

      Remove a Column Chooser from the Context 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