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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:53:09+00:00 2026-05-15T16:53:09+00:00

From what I (thought to) understand is that implementing INotifyPropertyChanged within the ModelView, allows

  • 0

From what I (thought to) understand is that implementing INotifyPropertyChanged within the ModelView, allows to raise the PropertyChanged event in case a property has been modified.

That way the View should get to be notified that the underlying property has changed and hence the UI should fetch the new changes.

Did I get the theory right?

The problem I face is that I have an Infragistics DataGrid bound to a ViewModel. As soon as I change a date Value, I can see how the property on the ViewModel is set correctly and the event is raised. But I haven’t subscribed from outside to this event though, how does the UI get notified?

I am asking this because I think the UI is not notofied at all. I have placed a second textbox that is binding thourgh the ViewModel to the same underlying Model property. However if I modify that property with the DataGrid, the TextBox (Mode=OneWay) is not automatically updated.

I actually make use of MVVM-Light Frame work and use ViewModelBase instead of INotifyPropertyChanged and do a RaisePropertyChanged(…). But the result should be similar.

Do I have to subscribe the TextBox manually to that Event somehow?

Edit: I have solved the problem, but dont grasp exactly why this is happening. Before answering the Question I need to explain a bit more about the architecture. The Datgrid is bound to propertyA in ViewModelA that returns an ObservableCollection<ViewModelB>. ViewModelB actually contains all the properties that the Grid should be displaying. All these properties fire in their Setters naturally an OnProperyChanged.

The TextBox was bound to PropertyB, that lives also within ViewModelA. But it returns directly a string, so the underlying getter of PerpertyB returns this:

_cashflowInputs[0].ProjectedDate.ToString();

However if I dont bind the TextBox to this propertyB, but bind it to PropertyA as well, it works:

Its weird. I was expecting it to work the same way. Both Properties live on the same ViewModel and access the same private ObservableCollection<ViewModelB>, why should it matter?

public ObservableCollection<ViewModelB> PropertyA
        {
            get { return _cashflowInputs;}
        }

        public string PropertyB
        {
            get { return _cashflowInputs[0].ProjectedDate.ToString(); }
        }

Kave

  • 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-15T16:53:09+00:00Added an answer on May 15, 2026 at 4:53 pm

    Here’s a quick review of how the notification between a data object and the UI element works when the data object implements INotifyPropertyChanged.

    1) A property setter on the data object is called to change the property.

    2) Within the setter, the data object changes the property value and raises an event to notify any UI elements bound to the data object the property has changed. The event raised will contain the name of the property that was just changed.

    3) The UI element handles the event and examines the event arguments to determine which property changed.

    4) Now that the UI element knows which property has changed, it calls the appropriate getter to get the up-to-date property value and it updates itself with that value.

    So, in your example. If the property ‘ProjectedDate’ is updated, an event will be raised passing the property name ‘ProjectedDate’ to the UI element. The UI element will then call the getter of the ‘ProjectedDate’ property to refresh itself.

    The UI element has no idea that ‘PropertyB’ has changed if an event was never raised with the property name ‘PropertyB’ as an arguement. Thus, it will not refresh itself with a new value if it is bound to ‘PropertyB’. At some point, an event must be raised with the property name ‘PropertyB’ as an event arguement for an UI element to know it needs to refresh itself with the most up-to-date property value.

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

Sidebar

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.