I have
Public Overrides Property UID() As String
Get
Return mUID
End Get
Set(ByVal value As String)
If Me.IsNew Then
mUID = value
End If
OnPropertyChanged("UID")
End Set
End Property
The class implements INotifyPropertyChanged and I am binding to a TextBox control in WinForm controls.
The problem is when the user types a value into the textbox that new value is shown in the textbox even though the bound value remains the same do to the fact IsNew is false. (I have tried using both types DataSourceUpdateMode.)
I have read http://stackoverflow.com/questions/480743 and I believe windows forms works basically the same way in that the initiator of the event will not also detect handle the event.
Is there anything I can do in the BO classes to force the control to responded to the INotifyPropertyChanged event? Or is there something else I can to within the BO class to get the control to display the correct value?
I realize I could handle this in the GUI code in various ways but that is not my goal.