Skip to main content
All docs
V24.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.v24.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.

See Also