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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataControl disable resort

Thread ID:





97226 Nov 9,2010 02:00 PM UTC Jan 25,2011 06:09 AM UTC General Discussion 1
Tags: General Discussion
Carmen Negoescu
Asked On November 9, 2010 02:00 PM UTC

I have a GridDataControl that displays several columns from an ObservableCollection, where Type implements INotifyPropertyChanged.
The information on the ObservableCollection is updated at least one time per second and some of the displayed columns are recalculated.
If the grid is sorted by one of the columns that are recalculated, the grid will resort itself each time a value is changed. If the grid is sorted by a column where not all elements are distinct, the rows that contain the same value on the sorted column will be resorted on every update.
For example, the original grid has:
Col1 Col2
John 0
Jim 0
Mary 1
Tim 0
and it is sorted by Col2, it will be
John 0
Jim 0
Tim 0
Mary 1
after 1 update, it can be
Tim 0
Jim 0
John 0
Mary 1
and so on.
Is there a way to stop this resorting, and display the initial sorted order until the next time the user clicks on the header? Even if the values are updated in the grid, or on the sorted column, the order should remain the same.

Manikandan [Syncfusion]
Replied On January 25, 2011 06:09 AM UTC

Hi Carmen,

Thanks for using Syncfusion Products.

By default the sorting and filtering that applied to the Grid will get refreshed whenever the view get refreshed. If we have set the NotifyPropertyChanged as true for Grid, then the grid will automatically listen to the change in Source and get refresh the view for each change . This is general behavior. In your scenario if you don’t want to sort the grid for each update then you can remove the sort columns and you can added it whenever you need. This can be done at application level.

Please let us know if you have any queries.

Manikandan JR.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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