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
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Remarks
To hide a band or a column from the Column/Band Chooser, set its ShowInColumnChooser
property to false
.
<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