+ Start a Discussion

Displaying search result in Tabuler format in VF page

every example Shown here --number of attributes and name of the attributes are mentioned in the visual force page

for example:

<apex:pageblockTable value="{!conList}" var="con">
      <apex:column value="{!con.name}"/>
      <apex:column value="{!con.email}"/>

But the problem is when i want to render the search result in vf page it could be anything..its not a predetermined set of attributed that I want to display..There should be some generic holder which will keep track of the attributes that i want to display..considering my example..if it is lead {Name=Bertha Boxer, Phone=(850) 644-4200, Id=00Q9000000EJ3FDEA1, LeadSource=Web, City=Tallahassee},

Then in visula force page it should appear like

Bertha|(850) 644-4200|Web|Tallahassee
Ankit AroraAnkit Arora
You are basically looking for a dynamic table? Then here it is :