Find all Selected Rows in Ranorex.Table

Ask general questions here.
atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Find all Selected Rows in Ranorex.Table

Post by atom » Wed Feb 03, 2010 1:42 pm

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

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: Find all Selected Rows in Ranorex.Table

Post by atom » Wed Feb 03, 2010 1:48 pm

perhaps something like:

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Find all Selected Rows in Ranorex.Table

Post by Support Team » Wed Feb 03, 2010 4:16 pm

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

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: Find all Selected Rows in Ranorex.Table

Post by atom » Wed Feb 03, 2010 7:07 pm

works great, thanks