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

  • Home
  • SEARCH
  • 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 3805420
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:40:31+00:00 2026-05-19T14:40:31+00:00

I have a class that uses INotifyPropertyChanged and have a List bound to a

  • 0

I have a class that uses INotifyPropertyChanged and have a List bound to a grid. Every time that object changes it updates the values in the grid. However for historical reasons I want to add that object to a collection/list and bind to a history grid to show all the changes. However every list I have tried seems to subscribe to INotifyPropertyChanged so I only ever get the same amount of items in my history grid.

Is there a list/collection that doesn’t subscribe to INotifyPropertyChanged?

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-19T14:40:32+00:00Added an answer on May 19, 2026 at 2:40 pm

    If your List is a list of references to a class, you will need to do a “deep clone” of the entire list in order to maintain a historical copy. Otherwise, a copy of the list’s contents will still be references to the “live” objects which are getting changed. Doing this will require code such as:

    // This requires a way to "Clone" your object...
    List<YourClass> listCopy = originalList.Select(item => item.Clone()).ToList();
    

    If the list contains value types (struct), you can just create a new List<YourType> and copy the original elements over.

    // If your type is a value type, you can just copy the list directly...
    var listCopy = originalList.ToList();
    

    Also – this has nothing to do with INotifyPropertyChanged. Lists, themselves, do nothing with the PropertyChanged event.

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

Sidebar

Related Questions

I have a class that uses XML and reflection to return Object s to
I have a class that uses either a static list (firstFriend in the example)
I have a class 'Data' that uses a getter to access some array. If
Is it good practice to have a class constructor that uses default parameters, or
I have a windows form application that uses a Shared class to house all
I have a third party library that internally constructs and uses the SqlConnection class.
I have class method that returns a list of employees that I can iterate
I have a data class that implements INotifyPropertyChanged and two WPF controls that DataBind
I have class that uses hibernate, I have included all required jars to classpath
I have a class that uses functors as units of work. It accepts a

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.