fires before a user drops a column

boolean BeforeColumnDrop(string sourceId,string targetId){ ... };


sourceIdstringthe id of the column to be dragged
targetIdstringthe id of the column where the dragged column will be dropped to


booleanfalse - to prevent dropping a column, otherwise true

Available only in PRO Edition

Example"BeforeColumnDrop", function(sourceId, targetId){
    // your logic here
    return false;


This functionality requires PRO version of the dhtmlxGrid (or DHTMLX suite) package.

Related sample:  Setup drag column (Pro)

See also
Change log

added in v6.5

Back to top