I have custom code in the entity which changes the CheckOut value when the DurationOfStay is changed (Same entity).
I have a textbox bound to the CheckOut field but when the information changes, the textbox isn't refreshing until I save.
I can check the data is changed with debug stuff to display the value in memory and, as I mentioned, when I save it, it updates. This, along with some scouring of these forums, would suggest that it is a problem of some kind of EndEdit not being called or something like that. I tried calling OnPropertyChanged("CheckOut") but that didn't do it. How can I trigger EndEdit on the individual field?
The code in my entity class is:
Public Overrides Property durationofstay() As Integer
Get
Return MyBase.DurationOfStay
End Get
Set(ByVal Value As Integer)
If Value > 0 Then
Me.CheckOut = Me.checkin.AddDays(Value)
MyBase.DurationOfStay = Value
Me.AmendNightRoomRates()
'Call OnPropertyChanged("CheckOut")
Else
MyBase.DurationOfStay = 0
End If
End Set
End Property