Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Scott on Mar 05, 2008 08:20
open dhtmlx forum
Copy header

Hello,

I am using the gridToClipboard() function with no problems but is it possible to get this to copy the header titles as well. (I have got filters in my headers so I don't know if this causes any complications).

many thanks
Scott
Answer posted by Support on Mar 05, 2008 09:07
You can include first line of headers ( so if you have headers on second or next lines of header - they will not be included )
Can be done by using next command before gridToClipboard

    grid.enableCSVHeader(true);

gridToClipboard actually use serializeToCSV, so all CSV|serialization commands affect result.