ArtiGrid
v1.6

Column Rename

The colRename() method allows you to easily rename column headers in the grid without modifying your database structure.

This is useful when you want to display more user-friendly or customized labels while keeping your original field names intact.


<?php
    
    $grid = new ArtiGrid();
    $grid->table('products')
        ->template('bootstrap5')
        ->colRename('productName','Number') // column rename
        ->modal();
    echo $grid->render();
?>
id productCode Number productLine productScale productVendor productDescription quantityInStock buyPrice MSRP Actions