Is there an elegant way to find row(s) containing a string (in RowCollection)? I would like to avoid using "foreach" loop (due to number of rows).
I hoped for something like DataRowCollection.Find but there seems to be no method like this available for Ranorex RowCollection? Is there a way to convert Ranorex RowCollection to DataRowCollection?
Eventually, I've read a post on similar subject, where was mentioned LINQ (this post). I was able to add LINQ reference to my project, but that's it I'm not quite sure where to start? Still learning my way around the C#.
Here is my code to create CSV data connector with propTableRowsCSV rowcollection, in which I would like to find particular row(s) without using foreach loop.
//create CSV data connector string connector = "CSVConnector"; //get data from CSV file Ranorex.Core.Data.CsvDataConnector csvConnector = new Ranorex.Core.Data.CsvDataConnector(connector,csvOutputPath,true); csvConnector.SeparatorChar = ','; Ranorex.Core.Data.ColumnCollection propTableColumnsCSV = new Ranorex.Core.Data.ColumnCollection(); Ranorex.Core.Data.RowCollection propTableRowsCSV = new Ranorex.Core.Data.RowCollection(propTableColumnsCSV); //load CSV connector csvConnector.LoadData(out propTableColumnsCSV, out propTableRowsCSV);Thanks in advance!