copyBlockToClipboard() not being copied to clipboard with he

function copyBlockToClipboard(){

pgmGrid.setCSVDelimiter("\t");

pgmGrid.enableCSVHeader(true);

pgmGrid.copyBlockToClipboard();

}



Even when I specify enableCSVHeader(true), a highlighted block is not copied to the clipboard if header cells are highlighted. Why is that?


enableCSVHeader method enable recognizing first row in CSV as header. It means when you will be load grid from csv format, first row in it will be recognize as grid’s header. This method doesn’t allow to copy header to the clipboard. Actually there is no way to copy grid’s header to clipboard using copyBlockToClipboard() method. If such requirement is critical in your case - you can contact sales@dhtmlx.com and request customization of the component.