DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### moveColumn(oldInd,newInd)

Required library edition:
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