Using a button to set the visibility of columns


I have a table with multiple columns which has been displayed on the UI. I would like to hide and unhide these columns on click of a button i.e the visibility is set or unset on click of this button. Is there any way to achieve the same?

Yes, you ca bind a page property to the desired column Visible property:


Thank you for your timely response. It works now