Tree Grid / Columns / Show or Hide Column

Blazor Tree Grid Example - Show or Hide Column Support Configuration

Loading Syncfusion Blazor Server Demos…

Click the switch to toggle visibility

This sample demonstrates the dynamic show/hide columns functionality in Tree Grid. Click the toggle switches in this demo to change the visibility of specific columns.

Columns in Tree Grid can be shown or hidden dynamically at runtime, and this functionality is achieved using the ShowColumnsAsync and HideColumnsAsync methods of the Tree Grid. The visibility of a column can also be controlled initially using the Visible property of the column definition. Setting this property to false hides the column during initial rendering.

In this demo, toggle switches are provided to dynamically show or hide the "Task ID", "Progress", and "Duration" columns using the ShowColumnsAsync and HideColumnsAsync methods.

More information about showing or hiding columns can be found in this documentation section.