Skip to content

Individual Column Color and Styling

To set column color, check out the http://phpdatagrid.com/examples/phpGridx/examples/composite_pk.php and using set_col_property() method.

<?php
...
$dg->set_col_property('orderNumber', array('classes'=>'comppk'));
$dg->set_col_property('productCode', array('classes'=>'comppk'));
...
?>
<style>
    .comppk{background-color: greenyellow !important;}
</style>

Add or replace the CSS class with other styles for any individual column

Feedback and Knowledge Base