In my application, a data grid contains more than 500 rows. My intention is to look for particular string in the grid and then click on the link.
Area of concern is - QTP is taking lot of time to iterate through the data grid to find the matching string.This is taking nearly 2+ minutes to search for the string. My code is as below -
For i=1 to intRowCnt
If Trim(UCase(strTaskDescr)) = Trim (UCase("abc")) Then
Browser("Br").Page("Pg").Frame("Fr").WbfUltraGrid( "Grid").SelectCell i, "Task Description"
Hi Graeme ,
Thanks for the reply.
Could you please throw some more light on what you mean by binary search technique after sorting the data.
It would be good if you provide some sample code or example so as to get a clear idea.
Thaks a lot for your suggestions. What I understood from your comments is that before searching for any data in the table - its always advisable to sort on particular column from where we want to search the data and then perform search operation. Please correct me if I've misunderstood.
Thanks again !!!