- $width: Datagrid width
- $height: Datagrid height. The default is 100% which expanses grid vertically to the entire browser height
- $shrinkToFit: true or false. If set to false, horizontal bar will appear when the total width of grid is wider than the dimesion width. The default is true.
- Set the overall height and width of phpGrid
- It is recommended to set $shrinkToFit to false when there are a large number of columns to display.
$dg -> set_dimension(800, 600);