Forum Discussion
mayank_gupta
11 years agoNew Contributor
Hi Kanhaiya,
I think you can try this for dynamic datagrid.
Property to get row count: Aliases.datagrid.rowcount
Property to get column count: Aliases.datagrid.columncount
To get element in each cell:
set obj = Aliases.WinFormsObject("dataGridView").Item(x, y)
where x & y values are given by loop which are based on the the values of row count and column count respectively. obj is the object in that cell.
I hope this will help you.
Thanks,
Mayank
I think you can try this for dynamic datagrid.
Property to get row count: Aliases.datagrid.rowcount
Property to get column count: Aliases.datagrid.columncount
To get element in each cell:
set obj = Aliases.WinFormsObject("dataGridView").Item(x, y)
where x & y values are given by loop which are based on the the values of row count and column count respectively. obj is the object in that cell.
I hope this will help you.
Thanks,
Mayank