DHTMLX Docs & Samples Explorer

setColumnHidden(ind, state)

Required library edition: This method requires Professional Edition of the DHTMLX library
Required library file: dhtmlxgrid.js

hide/show column

  • ind - column index
  • state - true/false - hide/show column
   //hide first column
   mygrid.setColumnHidden(0,true);
   //show first column
   mygrid.setColumnHidden(0,false);

See also: setRowHidden, setColumnsVisibility