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.

Set Cell Text is too slow

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 07:47 AM

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 04:23 AM

Thank you! It works.

Nirmal Raja [Syncfusion]
Replied On June 18, 2010 12:30 AM

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.

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.

;