More Inputs:

I am using the below two options for making header for the same portlet to appear on each page if data exceeds the page

pd4ml.addStyle(“TABLE,DIV {page-break-inside: auto !important}”, true);

This option is working with datagrid with normal header. But when it comes with multiple level of headers(mix of headers), then the issues arises.

Example Grid:

The above options is working for the below format
Header1 Header2 header 3
data1 data2 data3

the above option does not work for the option

Header1 header2 GroupHeader1 GroupHeader2
Header3 Header4 Header5 Header6 Header7
data1 data2 data3 data4 data5 data6 data7