Add/Remove Column in Grid

Is there any way to add or remove columns in the grid?

grid.setColumns() is probably what you’re looking for.

There is n omethod to add/delete columns.
You may try to use teh suggested solution to change the columns config of your grid.

@kcasarez Thanks. It worked for me.

@sematik Yes, For now I used setColumn method, but the thing is I just want to delete one column for that I have to get grid.config.columns and remove column from that list and send this new array to grid.setColumn() method and paint() the grid. So I would suggest it would be great if it provides just add/delete column function in simple manner.

Thank you for your suggestion. I’ll send it to the dev team and it will be cionsidered.