I am working on a project in which i have to display certain data row. I am using table for that purpose.

Here's a demo

Now the problem is whenever i change the selection of row or scroll the current row, it goes hiding up or down . How do I fix the scroll so that it shows the current row ?