AD
Administrator
Syncfusion Team
June 6, 2005 11:35 AM UTC
You did not say what kind of grid you were using, so I assume it is a GridControl.
One possible way to speed things up is that after the grid has be populated the way you want it, you loop through the grid one time, creating a hashtable whose keys are the primary-key value for the row in the grid and whose value is the rowindex of the row in the grid. (ie, create a hashtable that maps primary key values to grid row indexes.) Then in step 3, when you call you private functions to change particular values directly in your datatable, you can use this hashtable to look up the proper row that you need to update, and not have to search for it.
LL
Lokesh Luthra
June 6, 2005 02:06 PM UTC
Hi Clay HATS OFF ...Time has drastically reduced to 4 seconds from 2 minutes .Thanx n Cheers
>You did not say what kind of grid you were using, so I assume it is a GridControl.
>
>One possible way to speed things up is that after the grid has be populated the way you want it, you loop through the grid one time, creating a hashtable whose keys are the primary-key value for the row in the grid and whose value is the rowindex of the row in the grid. (ie, create a hashtable that maps primary key values to grid row indexes.) Then in step 3, when you call you private functions to change particular values directly in your datatable, you can use this hashtable to look up the proper row that you need to update, and not have to search for it.