# Power Table Change Row Height, Center Text and Bold

**URL:** <https://forum.inductiveautomation.com/t/power-table-change-row-height-center-text-and-bold/22435>\
**Category:** Ignition\
**Created:** [February 8, 2019, 1:29pm UTC](https://forum.inductiveautomation.com/t/power-table-change-row-height-center-text-and-bold/22435 "2019-02-08T13:29:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jshaffer09](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jshaffer09](https://forum.inductiveautomation.com/u/jshaffer09)\
**Post date:** [February 8, 2019, 1:29pm UTC](https://forum.inductiveautomation.com/t/power-table-change-row-height-center-text-and-bold/22435/1 "2019-02-08T13:29:19Z")

</div>

Is there a way to change the row height from scripting. It is for a in table header. I also want to center and bold the text in a certain row and column in scripting.

---

<div class="post-metadata">

**Author:** ![jshaffer09](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jshaffer09](https://forum.inductiveautomation.com/u/jshaffer09)\
**Post date:** [February 8, 2019, 1:55pm UTC](https://forum.inductiveautomation.com/t/power-table-change-row-height-center-text-and-bold/22435/2 "2019-02-08T13:55:43Z")

</div>

I got this to work for the auto center but the script I had used to change that certain row and column color based on value doesn’t work now

```auto
if colName =="Question":
		if data.getValueAt(rowIndex,"EquipID" )==0:
			return {'horizontalAlignment':0}

```

---

<div class="post-metadata">

**Author:** ![jshaffer09](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jshaffer09](https://forum.inductiveautomation.com/u/jshaffer09)\
**Post date:** [February 8, 2019, 4:56pm UTC](https://forum.inductiveautomation.com/t/power-table-change-row-height-center-text-and-bold/22435/3 "2019-02-08T16:56:57Z")

</div>

what i had  
return {‘horizontalAlignment’:0}

answer  
returnValue[“horizontalAlignment”] = 0

answer for the bold or bigger text  
Font = Font(“Dialog”,1,15)  
returnValue[“font”] = Font

---

<div class="post-metadata">

**Author:** ![cbanzet](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cbanzet/32/6207_2.png) [@cbanzet](https://forum.inductiveautomation.com/u/cbanzet)\
**Post date:** [February 21, 2020, 5:48pm UTC](https://forum.inductiveautomation.com/t/power-table-change-row-height-center-text-and-bold/22435/4 "2020-02-21T17:48:45Z")

</div>

Thank you for persisting and answering your own question. It is helping me today, 2/21/2020.
