How to create a dropdown for the button "column Visibility" ?
How to create a dropdown for the button "column Visibility" ?

Hi everyone,
I would like to have a dropdown with checkboxes to show/hide the columns.
I read the doc. I read lot of threads on this forum or on StakOverflow. However i didn't find the solution.
I made the button but it generates as many buttons as columns.
the current result:
To be more specific, I want something like that (in the red square) :
I already created the buttons print and column visibility and I can see all my columns as buttons but do you know how to create a dropdown with all the columns'name instead of these buttons?
To be very clear, I don't want to filter to find a row. I want to show or hide one, some or all the entire columns.
This question has an accepted answers - jump to answer
Answers
This thread should help, it's asking the same thing.
Cheers,
Colin
Thank you very much @colin You saved my day.