title: Applying styles to Header in p:datatable
body: <p>I would like to know how to apply the styles for the header column in the primefaces Datatable. I was able to change the styles for the rows using the rowStyleClass attribute. But not sure, how to change the style for the header columns. A sample example would be really helpful. I have tried the below, but the style for the entire column seems to get changed </p>
  
  <pre><code> &lt;p:column id="SelectallID" headerText="Select ID" style="text-align:center; background-color:#C6C3C6;padding:12px;"&gt;
   &lt;h:outputText&gt;
   &lt;h:selectBooleanCheckbox id="checkbox2"  value="#{car.selected}"/&gt;
   &lt;/h:outputText&gt;
   &lt;/p:column&gt;
  </code></pre>
  
  <p>when I use the above, the entire column style seems to get changed. But I want to change the style for only the header columns. Please Assist. Thanks in Advance.</p>