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
[DefaultValue(true)]
[Parameter]
public bool ShowInColumnChooser { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
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.
<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
See Also