Ranorex.Table and LINQ
Posted: Tue Feb 02, 2010 5:34 pm
Hiya
If i have a Ranorex.Table control, that contains 20 columns and 5000 rows, and i want to search to find all rows that have:
- Column1 = "Hello"
- Column2 = "World"
- Column3 = "Nice"
- Column4 = "Day"
- etc.
I could build a quite large ranorex xpath for that.
What would be better (I dont know if its possible) is to write a LINQ query on the Table.Rows collection
e.g.
Dim myrows = From row in Table.Rows where row.item("Column1") = "Hello" ... select row
Is that possible?
Regards
If i have a Ranorex.Table control, that contains 20 columns and 5000 rows, and i want to search to find all rows that have:
- Column1 = "Hello"
- Column2 = "World"
- Column3 = "Nice"
- Column4 = "Day"
- etc.
I could build a quite large ranorex xpath for that.
What would be better (I dont know if its possible) is to write a LINQ query on the Table.Rows collection
e.g.
Dim myrows = From row in Table.Rows where row.item("Column1") = "Hello" ... select row
Is that possible?
Regards