Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxGridColumn.ShowInColumnChooser Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

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

#Property Value

Type Default Description
Boolean true

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.

Watch Video: Grid - Column Types, Column Resize and Visibility

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>
See Also