Skip to main content
All docs
V25.2
  • BaseColumn.ShowInColumnChooser Property

    Gets or sets whether to display a column or a band in the Column/Band Chooser. This is a dependency property.

    Namespace: DevExpress.Xpf.Grid

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

    NuGet Package: DevExpress.Wpf.Grid.Core

    Declaration

    public bool ShowInColumnChooser { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true to display the band or the column header within the Column/Band Chooser; otherwise, false.

    Remarks

    To hide a band or a column from the Column/Band Chooser, set its ShowInColumnChooser property to false.

    ShowInColumnChooser for Bands

    <dxg:GridControl x:Name="grid" AutoGenerateColumns="AddNew" ItemsSource="{Binding Items}">
        <dxg:GridControl.Bands>
            <dxg:GridControlBand Name="b1" Header="Employee Name" ShowInColumnChooser="True">
                <dxg:GridColumn FieldName="Id" ShowInColumnChooser="False"/>
                <dxg:GridColumn FieldName="Name" ShowInColumnChooser="True"/>
            </dxg:GridControlBand>
            <dxg:GridControlBand Name="b2" Header="Employee Job Info" ShowInColumnChooser="True">
                <dxg:GridColumn FieldName="Position" />
                <dxg:GridColumn FieldName="Status" />
                <dxg:GridColumn FieldName="Department" />
            </dxg:GridControlBand>
            <dxg:GridControlBand Name="b3" Header="Employee Contacts" ShowInColumnChooser="False">
                <dxg:GridColumn FieldName="Phone" />
            </dxg:GridControlBand>
        </dxg:GridControl.Bands>
    </dxg:GridControl>
    

    If you want to hide a band or a column from the View, set the BaseColumn.Visible property to false in the GridControlBand.

    The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowInColumnChooser property.

    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.

    See Also