| Sample: dhtmlxGrid | Move column | dhtmlxGrid main page |
Move column with drag-n-drop
mygrid.enableColumnMove(true); //to prohibit moving some (or all) columns in some condition use event handler mygrid.attachEvent("onBeforeCMove",function(a,b){ return confirm("Allow move column "+sInd+" to position "+tInd);//return true to allow, false - to prohibit });
Move column with script
Move column tomygrid.moveColumn(oldInd,newInd)
| © DHTMLX LTD. All rights reserved |