New Posts New Posts RSS Feed: Forcing the PropertyChanged Event to Fire
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Forcing the PropertyChanged Event to Fire

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: Forcing the PropertyChanged Event to Fire
    Posted: 06-Jun-2007 at 1:47pm

Question:

The ComboBox in question is bound to a custom column on the entity. I have the binding descriptors for all of my ComboBoxes set up with DataSourceUpdateMode = OnPropertyChanged so I can instantly detect changes. The ColumnChanged event fires as expected for all of my ComboBoxes except this one. Is there some reason why the event wouldn't fire for a control bound to a custom column?

Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 346
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 06-Jun-2007 at 1:48pm

Answer:

There is no guarantee that changing a custom property will fire an OnPropertyChanged event.  This will happen if the custom property changes a persistable column (e.g., "Age" will fire an event if "Birthdate" also changes).  You can also fire the event yourself.  Use the ForcePropertyChanged() method.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down