Forum Discussion
AlexeyKryuchkov
13 years agoStaff
Hi Amit,
You can use native members if you need. In this case, you may need to look for a property that will contain the needed data using the Properties page of the Object Browser panel, because the property suggested by Helen may be not applicable to your version of the control.
Using the approach I suggested, you can iterate through all the children of the grid object which represent cells. To do this, you'll need to create a loop that will work with objects obtained through the FindAllChildren method. The method should look for the objects whose ObjectType property's value is equal to "AdvancedDataGridItemRenderer".
As I said in my previous post, this approach won't work.
- I saw that use of this property is not recommended. http://community.smartbear.com/forum/post/?mode=singleThread&thread=88b1042f-547e-441a-8795-d1e5b35c6212
You can use native members if you need. In this case, you may need to look for a property that will contain the needed data using the Properties page of the Object Browser panel, because the property suggested by Helen may be not applicable to your version of the control.
- If I have to get values for all rows and columns(all the values in the grid), it becomes difficult.
Using the approach I suggested, you can iterate through all the children of the grid object which represent cells. To do this, you'll need to create a loop that will work with objects obtained through the FindAllChildren method. The method should look for the objects whose ObjectType property's value is equal to "AdvancedDataGridItemRenderer".
Through the object mapping I added the testcomplete Advanceddatagrid class(/eg module.utp.Objecthrid) in default object properties
As I said in my previous post, this approach won't work.
Related Content
- 3 years agoCata