A question has been asked regarding a DataSource. So consider that I have a class
public class Customer{
public String name;
public int age;
public Customer(String name, int age) {
this.name = name;
this.age = age;
}
}
And I have a list binding to a list of these objects. Therefore i say
listBox.DisplayMember = "name";
But my question is when I reorganize my Customer class name into
public String fullName;
DisplayMember still remains in the "name". It will not succeed. Thus, it reduces my ability to reorganize domain objects. Is there any way to do this?
source
share