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

2 dataTable facet header with 2 different css style

Hi everybody!



I use a dataTable with two column (or more).


The two column has the same css style:


.headStyle {border-left: 1px solid #FFFFFF; background-color:#000000; color: white;}


<apex:dataTable ... headerClass="headStyle">


My aim, that the first  column header will be grey and the second (or the other coloumn header) will be black.
Is it possible? I haven't found any attribute or anythings that's make it.





Perhaps you want the columnClasses attribute on <apex:dataTable> ? 


Best, Steve.