One option would be to use the Extract Structured Data or Data Scrape Wizard. This would give you a data table, then you can use a For each on it, and you wouldn’t need a counter in this case. Then, I will normally look at the available attributes on one of the cells to see if there is a tableRow and tableColumn attribute, because this would allow you to replace with the index from the For each loop for row number.
‘Row 0’ might be the row number if tableRow doesn’t exist. You would need to replace the number with the index from the For each loop.
"<wnd ctrlname=‘dgvList’ /><ctrl name=‘DataGridView’ role=‘table’ /><ctrl name=‘Row "+rowIndex.ToString+"’ role=‘row’ /><ctrl name=‘ColumnName’ role=‘cell’ />"
The newer versions of Studio may handle variables in selectors differently, but my example is editing the selector in the Expression editor where it is surrounded by quotations.
Find children is also an option, but more complex I feel.