Hi~
I have a StringCollection with size 100000. When using the following code to set each element to grid cell. It's very slow. (It spends about 10 seconds.)
Is there any way to speed up?
Thx!
-- code snippet --
Dim arrayValues As New StringCollection
arrayValues = ... 'Get arrayValues
For col As Integer = 1 To arraySize.Count
GridControl1(1, col).Text = arrayValues(col - 1)
Next
NR
Nirmal Raja
Syncfusion Team
June 16, 2010 11:47 AM UTC
Hi Hanson,
Thank you for your interest in Syncfusion products.
The Grid can be loaded with the data of collection with high performance and less number of time when you load the data's virtually. The QueryCellInfo event can be used to apply data to each cell virtually.
Please refer the sample from our sample browser in the below location:
{Install drive}:\Syncfusion\{Version Number}\Windows\Grid.Windows\Samples\2.0\Virtual Grid\Virtual Grid Tutorial
Let me know if you have any queries.
Regards,
Nirmal
HL
Hanson Liao
June 17, 2010 08:23 AM UTC
Thank you! It works.
NR
Nirmal Raja
Syncfusion Team
June 18, 2010 04:30 AM UTC
Hi Hanson,
We are glad to hear that the issue has been resolved on your side.
Thank you for the update.
Regards,
Nirmal