# Scrolling position in table

**URL:** <https://forum.inductiveautomation.com/t/scrolling-position-in-table/7606>\
**Category:** Ignition\
**Created:** [November 21, 2013, 3:52pm UTC](https://forum.inductiveautomation.com/t/scrolling-position-in-table/7606 "2013-11-21T15:52:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgriffin002](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mgriffin002](https://forum.inductiveautomation.com/u/mgriffin002)\
**Post date:** [November 21, 2013, 3:52pm UTC](https://forum.inductiveautomation.com/t/scrolling-position-in-table/7606/1 "2013-11-21T15:52:01Z")

</div>

Is there a way that I can know what the scroll bar position is inside of a table?

I need to move a box inside of a table based on the selected row of the table. However, the end users can add an infinite number of rows, which will lead to the table having a scroll bar. I do not know how to move the box around when this happens.

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [November 21, 2013, 11:05pm UTC](https://forum.inductiveautomation.com/t/scrolling-position-in-table/7606/2 "2013-11-21T23:05:18Z")

</div>

Can you not use the selectedRow property of the table or the getSelectedRow() function of the table?

I put the following on a propertyChange event on the table and it printed out the correct selected row for me:

```python
if event.propertyName == "selectedRow":
	print event.source.selectedRow
```
