DHTMLX Docs & Samples Explorer

moveColumn(oldInd,newInd)

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

moves column of specified index to new position

  • oldInd - current index of column
  • newInd - index of column, before each moved one will be inserted
   //move 1st column before 3rd column
   mygrid.mygrid.moveColumn(0,2);

See also: moveRow, enableColumnMove