Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Appearance

Change the cell background color

Scroll Prev Next More

 

To change any cell background color, use the following code in the After Record Processed event.

 

 

 

$record["FieldName_css"]='background:red;';

 

You can also change the background color of a cell when the mouse hovers over it:

 

$record["FieldName_hovercss"]='background:yellow;';

See also:

•Change the row background color

•Conditional formatting

•Customizing CSS

•Grid Row JavaScript API: row.fieldCell()

•About Grid Row JavaScript API

•After record updated event

•Field events

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software