set_col_frozen()

  • Parameter(s):
    • $col_name: Column name
  • Description:
    • Similar to Excel column freeze, phpGrid can now freeze column(s)
  • Remark:
    • Note that the frozen columns should be from left to right, one after other.
    • In inline edit, the frozen columns are not editable.
    • Columns are not draggable if any column is frozen
  • Example:
1
2
// freeze both customer_id and customer_name columns
$dg -> set_col_frozen("customer_id")->set_col_frozen("customer_name"):