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 7670651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:52:16+00:00 2026-05-31T15:52:16+00:00

I have an unusual requirement. I have a WPF Datagrid with 5 rows. If

  • 0

I have an unusual requirement. I have a WPF Datagrid with 5 rows. If I changed any cell under ColumnB, then all rows under ColumnB should be notified.

Right now after updating one cell under ColumnB, only that cell gets updated, and if I doubleclick on any other cell under ColumnB and get into the Edit Mode, ONLY THEN the new value is displayed.

How do I force a RaisePropertyChanged on all rows, if one row has been updated?

  • 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-31T15:52:17+00:00Added an answer on May 31, 2026 at 3:52 pm

    Usually I would do this in the codebehind containing the DataGrid’s ItemsSource

    Here’s a rough example:

    MyObservableCollection.CollectionChanged += MyObservableCollection_CollectionChanged;
    
    ...
    
    void MyObservableCollection_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
    {
        // Attach PropertyChange event to item
        if (e.NewItems != null)
            foreach (SomeDataItem item in e.NewItems)
                item.PropertyChanged += SomeDataItem_PropertyChanged;
    
        if (e.OldItems != null)
            foreach (SomeDataItem item in e.OldItems)
                item.PropertyChanged -= SomeDataItem_PropertyChanged;
    }
    
    private bool shouldUpdate = true;
    
    void SomeDataItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
    {
        // If PropertyChanged raised on ColumnB, and shouldUpdate flag is true
        if (e.PropertyName == "ColumnB" && shouldUpdate)
        {
            // Disable updating all collections to prevent infinite looping
            shouldUpdate = false;
    
            foreach (SomeDataItem item in e.NewItems)
            {
                // If this isn't the current item, raise a PropertyChanged event on ColumnB
                if (item != sender)
                    item.RaisePropertyChanged(e.PropertyName);
            }
    
            // Reenable updating all collections
            shouldUpdate = true;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an unusual requirement for Wicket. I chose Wicket because I will make
I have an slightly unusual security requirement, and I'm looking for advice on best
I am new to PostgreSQL. I have a very unusual requirement for a hybrid
I have this unusual requirement from a client, and I am not quite sure
We have the unusual requirement of a multi-step form through GET requests. So, instead
I have a requirement to build a slightly unusual data model, but I'm having
I have little unusual problem to solve. I need some hint or links to
I have an unusual problem with my views - after a while of using
I'm trying to shred XML files that have an unusual layout, because items are
Bit of an unusual question, but I have setup a field inside a MySQL

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.