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?
hi Prashanth
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.


    <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"/>



User-added image

for more info -:
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 :)
panelGrid allows for more control of layout, its rendered as html table :)