Hi,
I have a scenario where I need to count the total number of row from an Ultra Grid control and expand all expandable rows. But the problem is there are some rows in the Ultra Grid that are not expandable. Is there any way to find if a row is expandable or not?
Ammar please Help me again.
Thanks
Nabajyoti
you can check that using following code to know whether the row is expandable or not.
SwfWindow("asdada").SwfTable("asdasda").Object.Rows.Item(rowIndex).IsExpandable
here SwfTable is my ultraGrid.
Hope it will solve your problem.
Amit
Thanks for your response amit, but what do you mean by "Object.Rows.Item(rowIndex).". I have little confusion.
when I record expanding one row the code comes like following..
SwfWindow("aaa").SwfWindow("aaa").SwfTable("aaa").ExpandRow(0)
can you please clear me
HI,
wat I am using are the runtime methods.
I hope if you try the following code it may work;
SwfWindow("aaa").SwfWindow("aaa").SwfTable("aaa").Object.Rows.Item(0).IsExpandable
I am getting the rows collection for the grid object and then checking for the particular row whether the Expandable property available for it.
Oh I got your point. I used same and it worked for me.
Thank you very much Amit....
Regards,
Hi amit,
I have tryed recording and using your code i.e. SwfWindow("aa").SwfTable("aa").Object.Rows.item(0).isExpandable it worke d fine but while I remove the ObjectRepository it is not working. I don't know why?
Ammar can you please help me.
Regards
nabajyoti
Hi sorry, but if u remove the OR then how are you going to reff. the object are you trying to use DP?
Thanks amit ...
I can't see a reason for it to not work in future as well ;)
Yes I am wrting DP.
I tryed to create a description object of the Ultra Grid and now it is working I dont know if it will work in future.
Thanks,