Its going to be hard for people to answer this as SpreadSheetLight doesn't appear to have publicly available code documentation. I have two suggestions based on a couple of assumptions:
- Does the SLDocument.Row.SLCell class have any index property? If so you could get your required information from there.
- You could replace your foreach's with for's to track the row and column.