# Ignition - Table Component: Scroll Bar Hide & Selected Row

**URL:** <https://forum.inductiveautomation.com/t/ignition-table-component-scroll-bar-hide-selected-row/10720>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 2, 2015, 9:13pm UTC](https://forum.inductiveautomation.com/t/ignition-table-component-scroll-bar-hide-selected-row/10720 "2015-11-02T21:13:19Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![ematschke](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ematschke/32/7544_2.png) [@ematschke](https://forum.inductiveautomation.com/u/ematschke)\
**Post date:** [November 6, 2019, 7:03pm UTC](https://forum.inductiveautomation.com/t/ignition-table-component-scroll-bar-hide-selected-row/10720/10 "2019-11-06T19:03:44Z")

</div>

Pat or anyone,  
We are using this code to move the scrollbar based on the selectedRow of a table and it works well as is. But what I really need is a way to just keep the scroll (or Selected Row actually) vertically centered in the table so operators can always see the few lines above and below the currently selected row. Table shows five rows, but there are 25 rows total. I wondered if there is a simple method using scrollpanes, but haven’t found that. Any ideas would be appreciated. Obviously when selectedRow\<2 would have to ignore any centering logic. This seems related to another topic here [Scroll scrollbar to position via script](http://forum.inductiveautomation.com/t/scroll-scrollbar-to-position-via-script/15999)?

---

_[View the full topic](https://forum.inductiveautomation.com/t/ignition-table-component-scroll-bar-hide-selected-row/10720)._
