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
regger118regger118 

How to draw a table this table?

Hi i have a sorte dlist of data - alphabetically i.e. [A,A,A,A,Z,Z,Z,Z,Z]

 

now how do i draw a table like this?

 

column_1   | column_2

A                       Z

A                       Z

A                       Z

A                       Z

Best Answer chosen by Admin (Salesforce Developers) 
rahul_123rahul_123

you can create a data table like

 

<apex:dataTable value="{! ....your object recordsetvar}"       cellspacing="10">

            
              

               

                <apex:column >

                        <apex:facet name="header">Column 1</apex:facet>

                                              <apex:outputText value="{!expression}"/>

                </apex:column>

                <apex:column >

                        <apex:facet name="header">Column_2</apex:facet>

                        <apex:outputText value="{!expression}"/>

                </apex:column>

        </apex:dataTable>

 

 

if this solves ur problem mark this as ur solution