Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5938041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:37:42+00:00 2026-05-22T15:37:42+00:00

There are cases when you have many UI updates due a massive amount of

  • 0

There are cases when you have many UI updates due a massive amount of INotifyChangedProperties events. In that case you might want to signal the changes to UI only once when all the properties are set like in a batch.

I found this great article that explains how to defer the refresh of the ViewCollection:

http://marlongrech.wordpress.com/2008/11/22/icollectionview-explained/

However I get an exception when the View is deferred and I try to add something to the collection. I don’t understand why this shouldn’t be allowed. That’s the whole point of it in first place.

InvalidoperationException:
Cannot change or check the contents or Current position of
CollectionView while Refresh is being deferred.

Does anyone know how to solve this problem?
Many Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:37:43+00:00Added an answer on May 22, 2026 at 3:37 pm

    Yes, don’t modify the collection in question. I think that you are misunderstanding the purpose of a collection view. This is what MSDN says;

    You can think of a collection view as
    a layer on top of a binding source
    collection that allows you to navigate
    and display the collection based on
    sort, filter, and group queries, all
    without having to manipulate the
    underlying source collection itself
    .

    So in short, don’t defer the refresh until you are done adding and removing, and otherwise manipulating your collection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two distinct scenarios. One, where there is a many to many case,
I have the following use case: There's a class called Template and with that
Hey there! now first of all some might want to shout that there are
I have a case where i have three entities with one-to-many and one-to-many relationships:
I have a use case with NServiceBus explained in this question. Essentially there is
Is there any solution to overcome case-sensitive problem for contains method. I have code
Are there any cases when it's a good idea to throw errors that can
I know there are many cases which are good cases to use multi-thread in
First of all, there are many cases where Sleep() is misused , for example
I have a javascript function that, in most cases, needs to do something with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.