Suspend Grid Sorting

2 posts, 0 answers
  1. Robert
    Robert avatar
    23 posts
    Member since:
    Oct 2011

    Posted 24 Mar 2014 Link to this post

    I have a grid that is sorted on a column. I'd like to suspend sorting on the grid so that a user can make changes without the grid resorting after every edit, and then resume sorting after the user is done so that the grid sorts correctly based on the updated data. Is this possible? I've tried calling SortDescriptors.SuspendNotifications(), but it seems to have no effect - if I update a cell value after calling this method, the grid will still resort the row after the edit is completed.
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 25 Mar 2014 Link to this post


    Actually the SuspendNotifications method only suspends the CollectionChanged events. As you have already added the SortDescriptor to the collection, such an event will not be raised and the existing SortDescriptor will not be removed. It will be reevaluated every time a row is edited and the edit the committed. Unfortunately this cannot be suspended. 



    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Back to Top