How to delete the columns in ag-grid
table using column Id in reactJs
?
0
votes
1 Answers
0
votes
Use setColumnVisible(colKey, visible)
in columnApi
. It Sets the visibility of a column. colKey
can be the column id or Column object. visible
is a boolean, true to show, false to hide. I don't think you can remove a column, but you can hide or show it.
Refer documentation here - https://www.ag-grid.com/javascript-grid-column-api/