Micro Focus QTP (UFT) Forums
RowCount of a Nested Grid - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: RowCount of a Nested Grid (/Thread-RowCount-of-a-Nested-Grid)



RowCount of a Nested Grid - J112910f - 01-31-2011

Right now I’m working on a grid where I need the row count of a subgrid. However, the sub grid is considered part of the major grid object wise.

Because the method is (object).RowCount it returns the number of total rows in the major grid. If I record in these subgrids QTP identifies them by cascading the Row designation, by major row then by sub row.

For example if I were to record a value in a sub grid column of the sub grid I would get:

Code:
SwfWindow("Program").SwfTable("Grid").SelectCell "0;1","Sub Grid Column"

Where the “0” in “0;1” represents the major grid row and the “1” represents the sub grid row. These tables are dynamic so any number of major grid rows and sub grid rows can appear.

Any ideas?