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
k sfdck sfdc 

display all fields of object with in the pageblock tablehow?

Prafull G.Prafull G.
pageBlockTable used to display list of records in a tabular form.
For example 
<apex:pageBlockTable value="{!contacts}" var="con">
  <apex:column value="{!con.Name}"/>
  <apex:column value="{!con.MailingCity}"/>
  <apex:column value="{!con.Phone}"/>
Above code will display 3 columns of Name, Mailing City and Phone for the given list of contacts.
This should be good enough to start for you. Please refer salesforce documentations for more details.
Vatsal KothariVatsal Kothari

Create One Visualforce page and refer below Example:

<apex:page standardController="Account">
    <apex:pageBlock title="Account Details">
        <apex:pageBlockTable value="{!account}" var="item">
            <apex:column value="{!}"/>
            <apex:column value="{!item.RecordType}"/>
            <apex:column value="{!item.Site}"/>
            <apex:column value="{!item.AccountSource}"/>
            <apex:column value="{!item.AnnualRevenue}"/>
            <apex:column value="{!item.Industry}"/>
            <apex:column value="{!item.Phone}"/>
Above page will display all fields of account.

Pass account Id to URL of the page i.e (
Replace accountRecordId with Id of the Account.

If this solves your problem, kindly mark it as the best answer.