Print Page | Close Window

Forcing the PropertyChanged Event to Fire

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=49
Printed Date: 12-Jun-2026 at 11:24am


Topic: Forcing the PropertyChanged Event to Fire
Posted By: Customer
Subject: Forcing the PropertyChanged Event to Fire
Date 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?




Replies:
Posted By: IdeaBlade
Date 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.




Print Page | Close Window