# Ignition scroll bar pane to button

**URL:** <https://forum.inductiveautomation.com/t/ignition-scroll-bar-pane-to-button/44709>\
**Category:** Ignition\
**Created:** [March 20, 2021, 2:29am UTC](https://forum.inductiveautomation.com/t/ignition-scroll-bar-pane-to-button/44709 "2021-03-20T02:29:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![epifanio.tigno](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@epifanio.tigno](https://forum.inductiveautomation.com/u/epifanio.tigno)\
**Post date:** [March 20, 2021, 2:29am UTC](https://forum.inductiveautomation.com/t/ignition-scroll-bar-pane-to-button/44709/1 "2021-03-20T02:29:45Z")

</div>

Hello

table = event.source.parent.getComponent(‘Table 1’) rowHeight = table.getRowHeight() scrollBar = table.getVerticalScrollBar() scrollBar.setValue(scrollBar.getValue() + rowHeight)

In code it does not select the row automatically/programmatically, how can i modify this code from MR.K001,got this code also from this forum. How can i modify the this code to selecte row every it scrolls downward one at a time? The table is displaying only one row.

---

<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:** [March 20, 2021, 2:42am UTC](https://forum.inductiveautomation.com/t/ignition-scroll-bar-pane-to-button/44709/2 "2021-03-20T02:42:57Z")

</div>

> [@epifanio.tigno](#):
>
> The table is displaying only one row

If it's only displaying 1 row, then you can't really scroll and use that code, no?

To select a row though, you just need to write to the table's `selectedItem` property of the table.

Also, for any code, you need to place the code inside surrounding 3 back ticks (` or use the button ![Screenshot_20210320-131322_Chrome](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/8/e884443e6a194620c89779be92a113dcfcabd2df.jpeg) ) in order to preserve formatting, otherwise python is impossible to read

---

<div class="post-metadata">

**Author:** ![epifanio.tigno](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@epifanio.tigno](https://forum.inductiveautomation.com/u/epifanio.tigno)\
**Post date:** [March 20, 2021, 2:52am UTC](https://forum.inductiveautomation.com/t/ignition-scroll-bar-pane-to-button/44709/3 "2021-03-20T02:52:57Z")

</div>

not literally one row,  
only the row selected when moving downwards or upwards using button acting as a scrollbar pane

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