Column headers not copied when copying rows on the grid

Hi,
I have a dhtmlxgrid implemented and there is a context menu that I have coded which has an option to copy a row on the grid and paste it as text elsewhere. I am currently calling rowToClipboard() function. The issue is that when the row is copied, I want the header of the grid should also be copied. Currently it just copies, the row.

Appreciate any help.

Thanks,
Sunil

Try to add

mygrid.enableCSVHeader(true);