The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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. Thanks
MAManikandan Syncfusion Team 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.