01-31-2011, 09:15 PM
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:
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?
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?