Scroll to Object by XPath [Horizontal]

I have table on my website, for verify text on table, we must use scroll.
for this case, I use looping for row and column and xpath to move or scroll, but it;s doesn’t work

WebElement moveToColumn = driver.findElement(By.xpath((‘//*[@id=“gridContainer”]/div/div[6]/div/div/div[1]/div/table/tbody/tr[’ +

moveColumn) + ‘]/td[’ + column + ‘]’))

JavascriptExecutor js = ((driver) as JavascriptExecutor)

js.executeScript(‘arguments[0].scrollIntoView();’, moveToColumn)

can you solve this problem?