function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BrettGusBrettGus 

Datatable with Two headers?

I'm looking to create a datatable... but it would be helpful if I could have two rows of headers.... is that at all possible?

 

This is what I'm trying to get it to look like:

 

sravusravu

Hi Brett,

 

You can use the normal html <table> tag and inside that table you can use <apex:repeat> component. So for that table you can always use styling i.e rowspan and colspan attriibutes.

 

You can use something like,

 

<table>

          <apex:repeat ......>

                      <tr>

                                 <td>

                                 </td>

                      </tr>

          </apex:repeat>

</table>

 

With this you can do any kind of styling to your table.

 

Hope this helps you.