Hello, I've following objects
public int PersonAge { get; set; }
public List<PersonGroup> PersonList { get; set; }
public class PersonGroup()
{
public string Name { get; set; }
public string DefaultAge { get; set; }
}
My ComboBox is bound to PersonList, while I also have a TextBox which is bound to PersonAge. If a user enters the number '20' into the TextBox (PersonAge), I want to select the according PersonGroup in the ComboBox, and if a User selects the PersonGroup-Item "Test1" from the ComboBox, I want the TextBox to display 10 in the TextBox (because PersonList[1] would be for example Name = "Test1"; DefaultAge = 10;)
Any ideas how to solve this via DataBinding?
Thanks a lot.
Cheers, Joseph