Example of Column Chooser in Blazor DataGrid Component

DataGrid / Columns / Column Chooser

The DataGrid with column chooser feature is demonstrated in this sample. To open the column chooser, click the column chooser icon in the toolbar, and then select columns to hide or show from the checkbox list.

1 of 7 pages (75 items)

The DataGrid columns can be dynamically shown/hidden by using the column chooser functionality. Set the ShowColumnChooser property to true to enable the column chooser. You can also prevent the display of a column in column chooser by setting ShowInColumnChooser to false in the columns definition.

When the user clicks the column chooser icon in the toolbar in this demo, the column chooser menu appears. By changing the state of the checkbox, the user can show or hide the columns.

More information about the Column chooser 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