Back to Devexpress

ExtendedColumnChooserControl Class

wpf-devexpress-dot-xpf-dot-grid-e530c67b.md

latest3.7 KB
Original Source

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.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public class ExtendedColumnChooserControl :
    GridColumnChooserControlBase
vb
Public Class ExtendedColumnChooserControl
    Inherits 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:

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/Band Chooser button from the menu:

  2. Add a Column Chooser to the window:

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

Note

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.

wpf-data-grid-customize-column-headers-based-on-location/CS/CustomColumnHeader/MainWindow.xaml#L48

xml
<dxg:ExtendedColumnChooserControl
    Grid.Column="1"

Inheritance

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

See Also

ExtendedColumnChooserControl Members

DevExpress.Xpf.Grid Namespace