Forum Discussion
rraghvani
Champion Level 3
3 years agoGet the number of rows of your grid control. Iterate through each row and expand the row. The Expand method may return a value, which you need to check - you should be able to use this to break the loop. Or you could use IsExpandable/IsExpandable or something similar to check the state of the row.
- kcarr863 years agoOccasional Contributor
Thank you for your suggestions. When you say "get the number of rows of your grid control" are you saying I should know the number of rows in each of my test cases first or that there's a method in TestComplete that will count and return the number of rows?