wpf-devexpress-dot-xpf-dot-grid-dot-dataviewcommandsbase-a9d99051.md
Invokes the Column Chooser.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public ICommand ShowColumnChooser { get; }
Public ReadOnly Property ShowColumnChooser As ICommand
| Type | Description |
|---|---|
| ICommand |
A command implementing the ICommand.
|
Corresponding Method: DataViewBase.ShowColumnChooser.
The following example uses the ShowColumnChooser property to display Column Chooser:
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
...
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<dxb:ToolBarControl>
<dxb:BarButtonItem Content="Show Column Chooser"
Command="{Binding View.Commands.ShowColumnChooser, ElementName=grid}" />
</dxb:ToolBarControl>
<dxg:GridControl x:Name="grid" Grid.Row="1" ...>
...
</dxg:GridControl>
</Grid>
See Also