DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### copyBlockToClipboard()

Required library edition:
Required library file: dhtmlxgrid_selection.js

copy content of block selection into clipboard in csv format (delimiter as set for csv serialization)

    mygrid.attachEvent("onKeyPress",onKeyPressed);
    ...
    function onKeyPressed(code,ctrl,shift){
    	if(code==67&&ctrl){
    	    mygrid.setCSVDelimiter("\t")
    	    mygrid.copyBlockToClipboard()
    	}
    	if(code==86&&ctrl){
    	    mygrid.pasteBlockFromClipboard()
    	}
    	return true;
    }

See also: copyRowContent, cellToClipboard, gridToClipboard, rowToClipboard