How to bind Dictionary with ComboBox and textbox?
- by younevertell
I have a Dictionary, where Person is a class, defined below
String role;
public class Person
{
public string firstname{ get; set; }
public string lastname{ get; set; }
public string city{ get; set; }
}
my question is how to bind the Dictionary key: String with a ComboBox, menwhile. have the Dictionary value: Person connected with three textboxes. That is, once a key is selected in the ComboBox, the corresponding value, firstname, lastname, city are shown in the three textboxes respectively?
Thanks in advance!