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. Image for the cookie policy date
close icon

How can I stop the grid from actively sorting without reverting back to physical row order?

I need to sort a grid and then disable active resorting. For example assume the physical order of the list is this:

Name
------
Eric
Brian
Fred

After adding the name to the sorted column collection, it would appear as:

Name
------
Brian
Eric
Fred

What I need to do is preserve that row order but disable further sorting. For example, if "Brian" was changed to "Greg", the order would be:

Name
------
Greg
Eric
Fred

I've spent a while trying to figure out how to do this and I'm stumped. Any ideas?

1 Reply

J. J.Nagarajan Syncfusion Team September 11, 2007 06:02 PM UTC

Hi Jonathan,

The attached sample implements the ListWrapper class to avoid the 'jumps' while the user changes the value in a sorted column. It also support the multicolumn sorting in a grid. Please try this and let me know if this helps.

Here is a sample.
http://www.syncfusion.com/Support/user/uploads/WrapperClassSortSample_46fcd2f1.zip

Best Regards,
Nagaraj

Loader.
Live Chat Icon For mobile
Up arrow icon