In my application i am having a dev express data grid. It contains around 2000 rows. In my c# code, i tried to find out the number of rows in the table(i.e the dev express data grid). I used the following code :
Table table = "rx path of table";
IList<Row> rows = table.Find<Row>("*/row");
Now the problem is, it takes around 40 seconds to return me the list of rows as mentioned above. Is there any quicker way to get all the rows?
Also note that, Table.Rows property will not return the rows as the rows are present within the Datapanel inside the table. Kindly help
Siva R S
Ask general questions here.
2 posts • Page 1 of 1
What technology is used for your application (WinForms, WPF)? Could you post a Ranorex snapshot of your application and the data grid, please?vengaishiva wrote:In my application i am having a dev express data grid.
The performance for search/find operations depends heavily on the underlying technology of the AUT. Accessing all rows for the first time can most probably not be sped up, but successive access can (as long as the rows do not change) using a CacheSessionContext. See following forum thread for more information:vengaishiva wrote:Now the problem is, it takes around 40 seconds to return me the list of rows as mentioned above. Is there any quicker way to get all the rows?
http://www.ranorex.com/forum/performanc ... html#p2435
If you just want to know the number of rows and the data grid is a WinForms control, you can also use Control.InvokeRemotely to directly get the rows count from the control. See following blog and forum post for more information:
http://www.ranorex.com/blog/transfering ... et-control
http://www.ranorex.com/forum/invokeremo ... t1002.html