You need to sign in to do that
Don't have an account?
KML1234
Column headings for a panelGrid?
Can anyone tell me how to code column headings for a panelGrid?
The documentation seems to suggest that it's done with a <apex:facet name="header"> component. The dataTable component is given as an example, but it relies on the <apex:column> component which is not applicable to a panelGrid.
My panelGrid has 4 columns and I'd like to add a different header to each column. I'm expecting the panelGrid to generate the following html:
How should it be done?
Thanks.
The documentation seems to suggest that it's done with a <apex:facet name="header"> component. The dataTable component is given as an example, but it relies on the <apex:column> component which is not applicable to a panelGrid.
My panelGrid has 4 columns and I'd like to add a different header to each column. I'm expecting the panelGrid to generate the following html:
Code:
<tr><th>Heading 1</th><th>Heading 2</th><th>Heading 3</th><th>Heading 4</th></tr>
Thanks.
So I think either you have to use the header facet and mess with the styling, or you should just add your four headers in as the first four child components. With the latter option it will handle your spacing correctly, you'll just get td's instead of th's.