Forum Discussion
Are you using a third party addin to generate the grid ? If so, the layout of the underlying table can change based on the settings you put in the markup. e.g. I work with DevX, which has a setting for AdaptivityMode. Set it as hidden HideDataCells and DevX puts an empty column at the end. Set it to HideDataCellsWindowLimit and DevX puts a visible=false cell with colspan the entire table in the top. Set it to show filter and another row is inserted at the top. TC can only return you what the actual HTML markup that these tools generate is created and in this case it's 4 rows. You will either need to remember and adjust how many lines are before the first visible row and add that to your row accordingly or use some FindChild/FindChildEx etc to find the rowindex of one of the cells you are looking for and work with that rather than the actual row number. Related discussions:
Grid Issue on Web Applications