Page 1 of 1

Find all Selected Rows in Ranorex.Table

Posted: Wed Feb 03, 2010 1:42 pm
by atom
Hiya

Quick question
I have a Ranorex.Table object, and I want to find all Row's where Selected = True
Because I want to set Selected = False on all these Row's to have none selected
How can I do that ?

Regards

Re: Find all Selected Rows in Ranorex.Table

Posted: Wed Feb 03, 2010 1:48 pm
by atom
perhaps something like:

Find(Of Ranorex.Row)("descendant::row[@State contains(@State,'Selected')]") ??

Re: Find all Selected Rows in Ranorex.Table

Posted: Wed Feb 03, 2010 4:16 pm
by Support Team
You can try to use the 'Selected' property in your RxPath expression like that:

"... table/row[@selected='True']"

But please check it with the RanoreXPath editor in Ranorex Spy tool to see the result bevor using it directly in code.

regards,
Christoph
Ranorex Support Team

Re: Find all Selected Rows in Ranorex.Table

Posted: Wed Feb 03, 2010 7:07 pm
by atom
works great, thanks