hi,
Actually i should have been more clear on my questions.Sorry about that.
1.We are using gridgrouping control.
The requirement is to do a search within 0.5 secs.
We have a search, which is now takes 2 secs.
I am attaching the search code which you can go through.If you can suggest some improvements, it will be better.
This code takes 1 sec.
After we find a record, we make a col of ther record active based on other cols value.Say I have colChoice, colChoice1, colChoice2, colChoice3. If the value of colChoice is 1 we make colChoice1 the active cell and call beginedit on it , if its 2 we make colChoice2 the active cell and if its 3 we make colChoice3 the active cell.This takes about 1 sec.
When we ran a profiling tool to find out the most time consuming lines of code. we found that
this.grid.endupdate(true) was the maximum time consuming. I am attaching the second process also.
2. When I said a collection actually I was looking for RecordCollection or like a list eg.ImageList.Is there anything like that?We will try with arraylist.
>1) Can you access the data directly from your datasource. This may be faster. Here is a sample using a GridDataBoundGrid that just uses the datasource to do things faster that using teh grid directly.
>
Here is one technique that implements a find from scratch. In this sample, a GridDataBoundGrid with 20000 rows can return all occurrences of a string in less than 100 msecs on my system. It does so by copying the column to an arraylist, and using ArrayList.IndexOf to do the searching. Now th this simple implementation, this requires a full word match. But you can use a ListBox and ListBox.FindString to do ''startswith'' searching.
>
>2) You could use an ArrayList.
Find_6007.zip