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
prashanth murukondaprashanth murukonda 

What is PanelGrid in Visualforce and when to use it?

sfdcMonkey.comsfdcMonkey.com
hi Prashanth
<apex:panelGrid>
Renders an HTML table element in which each component found in the body of the < apex:panelGrid > is placed into a corresponding cell in the first row until the number of columns is reached. At that point, the next component wraps to the next row and is placed in the first cell.

Example:
<apex:page>

    <apex:panelGrid columns="3" id="theGrid">

        <apex:outputText value="First" id="theFirst"/>

        <apex:outputText value="Second" id="theSecond"/>

        <apex:outputText value="Third" id="theThird"/>

        <apex:outputText value="Fourth" id="theFourth"/>

    </apex:panelGrid>

</apex:page>

User-added image

for more info -: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_panelGrid.htm
i hope it helps you to understand <apex:panelGrid> 
let me inform if it helps you. and mark it best answer so it make proper solution for others in future :)
thanks

 
sfdcMonkey.comsfdcMonkey.com
panelGrid allows for more control of layout, its rendered as html table :)