dhtmlgridx export



This is my grid defintion

    mygrid4.setHeader("ROW,Sub Brand,1 Noticing,#cspan,2 Identified,#cspan,3 Validated,#cspan,4 Qualified,#cspan,5 Cond Agreement,#cspan,6 Won,#cspan,7 Lost,#cspan,Total,#cspan,Period");
    mygrid4.attachHeader("#rspan,#rspan,Leads,Revenue,Leads,Revenue,Leads,Revenue,Leads,Revenue,Leads,Revenue,Leads,Revenue,Leads,Revenue,Leads,Revenue,#rspan");
    mygrid4.setInitWidths("50,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,10");

This is my export code

        mygrid4.setCSVDelimiter('\t');
        mygrid4.enableCSVHeader(true);
        document.formstyle.csvBuffer.value=mygrid4.serializeToCSV();

Export works fine. I do not get the row defined using mygrid4.attachHeader

Is there any tric to get the attached headers also

Unfortunately, grid doesn’t support serialization of additional headers.

Thanks

This is the code I used to take crae of this (Externally added the headers)

        //mygrid23.enableCSVHeader(true);
        document.formstyle.csvBuffer.value    =document.formstyle.csvBuffer.value+"\r\nKey Brand Pen\r\n\tREPORT BRAND\tWeek to Week\tWeek to Week\tTotal\tTotal  \tSegment\r\n";
        document.formstyle.csvBuffer.value    =document.formstyle.csvBuffer.value+"\tREPORT BRAND\tAccts       \tRevenue     \tAccts\tRevenue\tSegment\r\n";
        document.formstyle.csvBuffer.value    =document.formstyle.csvBuffer.value+mygrid23.serializeToCSV();