Back to Devexpress

DxGridColumn.ShowInColumnChooser Property

blazor-devexpress-dot-blazor-dot-dxgridcolumn-8b201888.md

latest1.9 KB
Original Source

DxGridColumn.ShowInColumnChooser Property

Specifies whether a hidden column should be listed in the column chooser.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool ShowInColumnChooser { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to display a column in the column chooser; otherwise, false.

|

Remarks

When you set the column’s Visible property to false, the grid does not display this column. However, users can invoke the column chooser to change the column visibility. If you need to hide a column in the column chooser, set the ShowInColumnChooser property to false. Note that if you exclude a band, the column chooser also does not display its nested columns.

YouTube video

razor
<DxGrid Data="Products">
    <Columns>
        <DxGridDataColumn FieldName="SupplierId" Caption="Supplier" />
        <DxGridDataColumn FieldName="UnitPrice" DisplayFormat="c" />
        <DxGridDataColumn FieldName="UnitsInStock" />
        <DxGridDataColumn FieldName="QuantityPerUnit" />
        <DxGridDataColumn FieldName="Discontinued" ShowInColumnChooser="false" />
    </Columns>
</DxGrid>

Implements

ShowInColumnChooser

See Also

DxGridColumn Class

DxGridColumn Members

DevExpress.Blazor Namespace