# Individual Table Cell Format

**URL:** <https://forum.inductiveautomation.com/t/individual-table-cell-format/54320>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [December 20, 2021, 5:22pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320 "2021-12-20T17:22:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [December 20, 2021, 5:22pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320/1 "2021-12-20T17:22:50Z")

</div>

How can I change the format of the text for an individual cell in a table? The value that I want to highlight will always be in the same position.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [December 20, 2021, 5:28pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320/2 "2021-12-20T17:28:51Z")

</div>

With Power Table, using **configureCell** extension function.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [December 20, 2021, 5:32pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320/3 "2021-12-20T17:32:42Z")

</div>

I’m using the regular Table, not the Power Table. Is it impossible with the regular Table component?

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [December 20, 2021, 5:37pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320/4 "2021-12-20T17:37:10Z")

</div>

Yes, but it becomes in too much effort for something that is already supported with the power table.  
You will need to feel comfortable with JTable class and viewports and related stuff.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [December 20, 2021, 5:39pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320/5 "2021-12-20T17:39:38Z")

</div>

Ok, I’ll give the power table a shot.

Thanks

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [December 20, 2021, 7:54pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320/6 "2021-12-20T19:54:53Z")

</div>

Where can I find the syntax for changing the attributes of the cells? (font, for example)

I tried the same format as the font string, but that did not seem to work.

```auto
if rowView == 0 & colView == 0:
		return {"Lucida Console, Bold, 18" : self.font}

```

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 20, 2021, 8:06pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320/7 "2021-12-20T20:06:37Z")

</div>

Close. I believe it’s:

```auto
if rowView == 0 & colView == 0:
		return {'font': "Lucida Console, Bold, 18"}

```

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [December 20, 2021, 8:18pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320/8 "2021-12-20T20:18:45Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 20, 2021, 8:22pm UTC](https://forum.inductiveautomation.com/t/individual-table-cell-format/54320/9 "2021-12-20T20:22:59Z")

</div>

As an side note, you may want to consider setting up a ‘default format’. Then, you can just change the property you need for each scenario.

```python
# Define default cell properties
config = {
          'foreground': 'black',
		  'background': 'white',
		  'font' : 'Dialog, Plain, 12'
		 }

if selected:
	config['background'] = self.selectionBackground
	config['foreground'] = self.selectionForeground
	
if rowView == 0 & colView == 0:
	config['font'] = "Lucida Console, Bold, 18"

return config

```
