Span in header with xml loading

Hey!



I’m using the grid with loading config from a xml file because i got dynamic columns.



I want the last column to be a span over 3 cells. I tried this xml :





    

        

            

                customColumnSort

            

            

                mawmail

            

            

                true

                grid_hover

            

        

        E-mail adres

        Groep(en)

        Naam

        Beroep

        Opties

        

            

                /mailcampaign/abonnees/getOverview

            

            

                E-mail adres,Groep(en),Naam,Beroep,Opties,#cspan,#cspan

            

        

    





But then i got 2 header rows. The seconde is the correct one. But when i leave out the tags i get an error.



I also tried adding 2x #cspan That didn’t work out.



Do you know how to accomplish it?



Another small question is, is there a function which returns the number of columns. I want to disable sorting on the last column, but since i don’t know how many colums i’ll get, i just need the last one.





Thanks





But when i leave out the tags i get an error.
When configuration initialized from XML tags are mandatory

>>I also tried adding 2x #cspan That didn’t work out.
Actually this is must work

     E-mail adres

        Groep(en)

        Naam

        Beroep

        Opties

        #cspan

        #cspan


please be sure that there is no extra whitespaces around #cspan

>>Another small question is, is there a function which returns the number of columns.
    mygrid.getColumnCount();