Hello
I have object A that contains a collection of object Bs in my application. In the detail view of object A I have a nasted list view of object Bs on a separate tab. B has two persistent string properties and a persistent boolean property that has ImmiediatePostData attribute. Now if the value of boolean prop changes to true, the string properties should be assigned a certain non-empty values. I do this in the OnChanged method of object B:
C#if (propertyName == "FooBar")
{
if ((bool)newValue == true)
{
if (string.IsNullOrEmpty(Foo))
Foo= "text";
if (string.IsNullOrEmpty(Bar))
Bar= "text";
}
}
It works well if I edit B in a popup window, but with inline editing the values are not being assigned, although the condition in OnChanged() methiod is being hit after I click the inner save button (so well they are actually being assigned, but after that the setter is accessed again with null value). I can't see any place in my code that could cause this. Any help would be appreciated.