# Table row height

**URL:** <https://forum.inductiveautomation.com/t/table-row-height/107043>\
**Category:** Ignition\
**Created:** [June 4, 2025, 6:30pm UTC](https://forum.inductiveautomation.com/t/table-row-height/107043 "2025-06-04T18:30:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor.aguilar](https://avatars.discourse-cdn.com/v4/letter/v/7bcc69/32.png) [@victor.aguilar](https://forum.inductiveautomation.com/u/victor.aguilar)\
**Post date:** [June 4, 2025, 6:30pm UTC](https://forum.inductiveautomation.com/t/table-row-height/107043/1 "2025-06-04T18:30:45Z")

</div>

Hi

I'm having issues with table component,

It seems that there are not enough space to show the information on the row,

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/5/852c71571689bb339545d722bdff046d1020217c.png)

Because when I click in to the row I can see the information from the query.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/d/bd0920cb9fb0e028a2c2fa033acf6605a8614027.png)

Regards

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 4, 2025, 6:45pm UTC](https://forum.inductiveautomation.com/t/table-row-height/107043/2 "2025-06-04T18:45:18Z")

</div>

There are multiple configurations you can play with.  
We don't know much about how you've set things up, so it might prove difficult to provide accurate help.

---

<div class="post-metadata">

**Author:** ![dillon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dillon/32/81537_2.png) [@dillon](https://forum.inductiveautomation.com/u/dillon)\
**Post date:** [June 4, 2025, 6:48pm UTC](https://forum.inductiveautomation.com/t/table-row-height/107043/3 "2025-06-04T18:48:08Z")

</div>

[Perspective - Table | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-table#rows-properties)

You can set the row height to 'auto' like a css property and it will adjust accordingly, if that is what you wish to happen. But as @pascal.fragnoud mentioned there are many other factors like position.shrink properties and so on.

---

<div class="post-metadata">

**Author:** ![victor.aguilar](https://avatars.discourse-cdn.com/v4/letter/v/7bcc69/32.png) [@victor.aguilar](https://forum.inductiveautomation.com/u/victor.aguilar)\
**Post date:** [June 4, 2025, 7:05pm UTC](https://forum.inductiveautomation.com/t/table-row-height/107043/4 "2025-06-04T19:05:51Z")

</div>

I'm using the following code to create the table

```
data = self.parent.custom.Result
self.props.data = []
rowcount = self.parent.custom.RowCount
columns = self.props.columns
self.custom.Adds = []
self.custom.Edits = []

newRow ={}

for row in range(rowcount):
	for col in columns:
		if col.field == 'PartNumber':
			value = data.getValueAt(row,0)
			enable = False
			display = True
		elif col.field == 'CastingArea':
			value = data.getValueAt(row,1)
			enable = True
			display = True	        
	     
		newRow[col.field] = {"value": value, "enabled":enable, "display":display, "style":{}}
	
	self.props.data.append(newRow)
self.props.selection.selectedRow = -1
self.props.selection.selectedColumn = -1
self.props.selection.selectedRow = None
self.props.selection.selectedColumn = None

```

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 4, 2025, 9:46pm UTC](https://forum.inductiveautomation.com/t/table-row-height/107043/5 "2025-06-04T21:46:27Z")

</div>

whoa, that's... not how you should be doing this. I can't right now, but I'll try to explain in more details tomorrow.  
But that's also completely irrelevant to rows height.

That code shows how you're building the table's data, now how it's configured to display things.  
You should be looking at how the embedded view is set up: Make sure it can grow to fit its content, Then as Dillon said, set the row's height to auto. That's in the table's properties.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 5, 2025, 3:30am UTC](https://forum.inductiveautomation.com/t/table-row-height/107043/6 "2025-06-05T03:30:48Z")

</div>

> [@victor.aguilar](#):
>
> ```python
> self.props.data.append(newRow)
> 
> ```

You certainly don't want to be modifying props like this until the very end of the script as this will kill your performance

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 5, 2025, 7:26am UTC](https://forum.inductiveautomation.com/t/table-row-height/107043/7 "2025-06-05T07:26:04Z")

</div>

Put a binding on your table's `data` property. Make it a property binding, to the source data (the one you point to with `self.parent.custom.result`).  
Add a script binding with this:

```python
return [
	{
		'PartNumber': value.getValueAt(row, 0),
		'CastingArea': value.getValueAt(row, 1)
	} for row in range(value.rowCount)
]

```

Set the `enable`, `visible` and such in the column configuration.  
This may be simplified further, depending on a bunch of variables for which we don't have much information.
