is there a way that datatable change from 3 column to 2 column
is there a way that datatable change from 3 column to 2 column

For example, I make a function to make a data table
head: Name | Age | Gender
body : Alex | 12 | Male
then I called the function again but this time I just wanted to show
head: Name | Age
body: Alex | 12
is there a way to do it or is it just not possible to use data tables?any suggestion would be helpful thank you
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
column().visible()
to hide or show the column. Or use column visibility like this example.Kevin
Thank for help
@kthorngren is there any other way to achieve that or it's not possible?
Please provide details of what you want to do.
Kevin