Dynamically add headers in table datatable
===

Is it possible to work with 2 rows in THEAD with dataTables?

    <table>
        <thead>
            ## row 1
            ## row 2
            <tbody></tbody>
    </table> 


In row 1 I need 2 single columns and one column with colspan 3:

    <tr>
        <th></th>
        <th></th>
        <th colspan="3"></th>
    </tr>

And in row 2 I need 5 columns:

    <tr>
        <th></th>
        <th></th>
        <th></th>
        <th></th>
    </tr>

But I have an case where I don'n need 5 columns, but only 3.

Can this be generated dynamically?