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

Hey there! now first of all some might want to shout that there are
I have some HTML I am trying to parse. There are cases where the
i have this block of xslt if-else case and was wondering if there's a
When are custom Exception classes most-valuable? Are there cases when they should or should
I'm using sequential ids as primary keys and there are cases where I don't
What business cases are there for using Markov chains? I've seen the sort of
Is there any advantage over using a class over a struct in cases such
In which cases would you use which? Is there much of a difference? Which
Is there a case insensitive version of the :contains jQuery selector or should I
Is there any facility in the standard Java libraries that, given a CharSequence, produces

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.