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.

GridControl Sort Performance

Thread ID:

Created:

Updated:

Platform:

Replies:

124834 Jul 2,2016 12:07 AM Jul 4,2016 09:02 AM Windows Forms 1
loading
Tags: GridControl
Konrad Jaschke
Asked On July 2, 2016 12:07 AM

I'm having some problems with the performance of sort on a ControlGrid.  Everything works great.  I've got about 3500 rows and I'm just sorting on one Column of strings.  I've searched the forums and the samples and having some trouble understanding some of it.

When I use the sort sample included and increase it to 3500 rows it still sorts very fast on Strings.  Maybe half a second.  When I sort using GridControl1.Data.SortByColumn (no custom Camparer) it takes about 3 seconds on a faster machine and worse of course on a slower machine.  Its not bad, but It should be able to be faster since your demo does.

All the data is loaded from a two dimensional array into the grid so I do have that I could use.

I searched the forum and found a 2005 thread that stated, "The call to store.GetValue inside the Compare method of our default comparison method that is called from Array.Sort is a bottleneck. It is better to prepare the data in an array before calling sort."

So I'm trying to understand how it is I'm to prepare the data in an array first.  Or maybe go to Virtual Grid, but then that seems to be complicating matters even more?

Any help would be great.

Thanks,



Amal Raj Umapathy Selvam [Syncfusion]
Replied On July 4, 2016 09:02 AM

Hi Konrad, 
 
Thanks for using Syncfusion products. 
 
We have tried to reproduce your reported scenario. Unfortunately the performance issue while sorting using no custom comparer cannot be reproduced at our side. Hereby we have attached our tested sample. 
 
Could you please try to reproduce the issue with the attached sample? It could be useful to sort out the issue at the earliest. 
 
Sample Link 
 
Regards, 
Amal Raj U. 


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.

;