Perspective - datatable - script - selection - visible

I’m on 8.1.12

Is there a way to force selected row to be visible on screen. I have a datatable with several number of rows so my datable have vertical scrollbar. My script fill the selectedColumn and selectedRow but sometimes the selection is not on screen and have to scroll to get it. I want tricks to make sure that the selection is displayed on screen.