Having no idea about both your tested application and your test code I am not sure I can recommend something.
But having my guess in mind and remembering that you mentioned some grid, I still can suggest to work with rows and/or cells.
The answer on the question of how to access grid rows and cells depends on your tested application. Use Object Browser to analyze the grid and check how you can work with it. (Note, in case of web application, what seems to look like a grid might appear to be a loosely coupled set of panels/divs and you will need to work out a relevant amount of code to reliable work with them.)