How to get the position (x, y) of widget grid cell?

Hi, is there a way to get the coordinates of a cell in a grid?
I want to be able to pan the grid around, according to the position of that cell.
Thanks.