set_col_width()

Starting version 6.6, phpGrid will automatically resize column width based on its content during page load. Users can also double-click a column divider to resize a column.
X
  • Parameters:

    • $col_name: column name
    • $width: width
  • Description:

    • Specify column width in pixel. The width should be an integer value.
  • Example:
1
$dg -> set_col_width("comments", 500);