Hello,
I search a method for hide and show the grid (at the left with the columns) with a button.
I see a function for that: gantt.show_grid = false but it is in the V3 (I think).
So my question is, it’s possible to hide the grid in V2.1 ?
(Sorry for english)
PS: I don’t want upgrade, I want to stay on v2.1
Hi,
you can dinamically change the gantt.config.columns setting (remove/add needed columns from it) and redraw the gantt//default columns definition
gantt.config.columns=[...];
gantt.render();
such approach will work for most settings of the gantt
docs.dhtmlx.com/gantt/api__gantt … onfig.html
Thank you 
It’s more easy: gantt.config.grid_width = 0;
But thank you 
try this
for hiding grid
gantt.config.show_grid = false;