The code below is running fine until I select a checkbox to add a column dynamically in a table. After the new column is added in the table, if I click on the header of the table all the newly added column disappears and the table resets to the initial condition. I think it's because i didn't configure table column listener or something.. please help.
What I want is when we click any checkbox the column should be added/removed accordingly from the table and and when we click table header nothing should happen. On clicking the cell inside the table we should be able to edit it.