This looks like a duplicate of How can I lock the first row and first column of a table when scrolling, possibly using javascript and CSS?How can I lock the first row and first column of a table when scrolling, possibly using javascript and CSS?
Is that what you're looking for?