We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

restrict some specific columns from displaying in the column chooser in blazor

hello,

I would like to know, if there any way to restrict some specific columns from displaying in the column chooser in blazor. I mean I don't want to display all the Columns from my Datagrid in the columnchooser dropdownlist, but only some of them. Is that possible?


Regards


1 Reply 1 reply marked as answer

KG Keerthana Ganesan Syncfusion Team December 30, 2022 10:14 AM UTC

Hi Rene,

Greetings from Syncfusion support.

We have analyzed your query, you can hide the column names in column chooser by defining the ShowInColumnChooser property as false. Kindly refer to the attached code snippet for your reference.

<GridColumn Field=@nameof(EmployeeData.FirstName) HeaderText="First Name" ShowInColumnChooser="false" Width="130"></GridColumn>


Kindly get back to us if you have any further queries.

Regards,

Keerthana.


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon