Blazor DataGrid Example - Show or Hide Columns

DataGrid / Columns / Show or Hide Column

This sample demonstrates DataGrid's dynamic show or hide columns feature. Toggle the visibility of columns by clicking the switch button.

Loading Syncfusion Blazor Server Demos…

Click the switch to toggle visibility
1 of 7 pages (75 items)

The Blazor DataGrid column can be dynamically shown or hidden by using the DataGrid's ShowColumnAsync and HideColumnAsync methods.

The columns in this demo can be shown or hidden by clicking the Switch buttons to toggle visibility. The visibility of the column is also toggled based on the HeaderText value.

The visibility of a column is specified by the Visible property. Set the Visible property to false to hide a column during the initial rendering.

More information about the Show and Hide columns feature can be found in this documentation section.

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE