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
PuranKishorePuranKishore 

How to create title for every rows in <apex:dataTable>

<apex:dataTable value="{!Case}" var="c" border="1" >
                <apex:column title="OwnerId" value="{!c.OwnerId}"/>
                <apex:column value="{!c.LastName}"/>
                <apex:column value="{!c.Email}"/>
                <apex:column value="{!c.Id}"/>
            
            </apex:dataTable>

Rahul SharmaRahul Sharma

You could use headerValue attribute of apex:column component.

<apex:dataTable value="{!Case}" var="c" border="1" >
	<apex:column title="OwnerId" value="{!c.OwnerId}" headerValue="ownerId"/>
	<apex:column value="{!c.LastName}" headerValue="Last Name"/>
	<apex:column value="{!c.Email}" headerValue="Email"/>
	<apex:column value="{!c.Id}" headerValue="Id"/>
</apex:dataTable>