How to make search faster using Find<AdapterType> : General Questions

How to make search faster using Find<AdapterType>

Ask general questions here.

How to make search faster using Find<AdapterType>

Postby vengaishiva » Fri Jul 08, 2011 11:52 am

Hi,
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 :cry:

Regards,
Siva R S
vengaishiva
 
Posts: 62
Joined: Wed Mar 09, 2011 5:40 pm

Re: How to make search faster using Find<AdapterType>

Postby Support Team » Sun Jul 10, 2011 5:06 pm

vengaishiva wrote:In my application i am having a dev express data grid.

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: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?

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:
performance-with-infragistics-grid-t723.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
invokeremotely-devexpress-grid-t1002.html

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest