Back to Devexpress

ColumnChooserControl Class

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

latest3.1 KB
Original Source

ColumnChooserControl Class

The legacy 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 ColumnChooserControl :
    GridColumnChooserControlBase
vb
Public Class ColumnChooserControl
    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 a ColumnChooserControl object. This object is the Column Chooser whose DataViewBase.ColumnChooserColumnDisplayMode property is set to ShowHiddenColumnsOnly :

  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:

  2. Add a Column Chooser to the window:

Inheritance

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

See Also

Show and Hide Columns

ColumnChooserControl Members

ColumnChooserControlBase.Owner

DevExpress.Xpf.Grid Namespace