Multirow Header Issue

I used your sample code to create what I thought would create a multirow header grid with the last column displaying three subcolumns (code below):

mygrid.setHeader(“Ten Stat,Employee’s Name,SSN,Rank/Title, Code,Contract Period,Pos. No, Annual Base Salary,#cspan”);
mygrid.attachHeader(["#rspan","#rspan","#rspan","#rspan","#rspan","#rspan","#rspan",“The Subhead”,“Other Subhead”,“Total”]);
mygrid.setInitWidths(“50,150,80,150,50,62,50,300”);
mygrid.setSizes();

I first two subcolumns display but I never see the third. Thanks in advance for your help on what I may be doing wrong. Thanks again.

Hello.

In your code in:

  1. mygrid.setHeader(“Ten Stat,Employee’s Name,SSN,Rank/Title, Code,Contract Period,Pos. No, Annual Base Salary,#cspan”);
    you have 9 columns

in:
2) mygrid.attachHeader(["#rspan","#rspan","#rspan","#rspan","#rspan","#rspan","#rspan",“The Subhead”,“Other Subhead”,“Total”]);
you have 10 columns

and in:
3) mygrid.setInitWidths(“50,150,80,150,50,62,50,300”);
only 8 columns (as a result last 2 of ten columns (see1) will have the width to “0”))

Please correct the number of the columns in each method to the needed. If you still have any issue provide a scheme of needed construction.