set_caption()

  • Parameter(s):
    • $caption | false: the text for the grid caption. Set to false to completely hide the caption.
  • Description:
    • When set, this method displays text above the column header as the datagrid caption. When this method is not called, phpGrid sets the table name as the default caption. For example, the caption will be displayed as “Orders” when the table name is “Orders”.
  • Remark:
    • When caption is set to false, the space used for displaying caption will be hidden, leaves only the column header, grid, and the footer. To display the caption without any text, uses ” ” without the quote.
  • Example:
1
$dg -> set_caption(false); // this will hide the caption