# Table Header Customization

**URL:** <https://forum.inductiveautomation.com/t/table-header-customization/8903>\
**Category:** Ignition\
**Created:** [August 14, 2014, 2:56pm UTC](https://forum.inductiveautomation.com/t/table-header-customization/8903 "2014-08-14T14:56:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Doll](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@David.Doll](https://forum.inductiveautomation.com/u/David.Doll)\
**Post date:** [August 14, 2014, 2:56pm UTC](https://forum.inductiveautomation.com/t/table-header-customization/8903/1 "2014-08-14T14:56:59Z")

</div>

Hopefully this is a quick answer for someone! I’m trying to change the background color for a standard table header. I’ve tried to code it in with this script:

`dttable = event.source.parent.getComponent(Line1_DT).viewport.view
dttable.tableHeader.background = (30,5,239)`

I’m not putting it in the right place, my code is in error, or it’s not possible to change the background color of the header on a table?

Has anybody done this before?

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [August 14, 2014, 3:22pm UTC](https://forum.inductiveautomation.com/t/table-header-customization/8903/2 "2014-08-14T15:22:11Z")

</div>

[code]from java.awt import Color

bg=Color(12,128,12,255)  
tbl = event.source.parent.getComponent(‘Table’)  
tbl.getTableHeader().setBackground(bg)[/code]
