We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set Cell Text is too slow

Thread ID:

Created:

Updated:

Platform:

Replies:

94948 Jun 14,2010 10:20 AM UTC Jun 18,2010 04:30 AM UTC Windows Forms 3
loading
Tags: GridControl
Hanson Liao
Asked On June 14, 2010 10:20 AM UTC

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

Nirmal Raja [Syncfusion]
Replied On 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

Hanson Liao
Replied On June 17, 2010 08:23 AM UTC

Thank you! It works.

Nirmal Raja [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;