I have a
public object DataSource {get;set} and a public string DisplayMember {get;set}
The object can take everything like an IList or a CustomerListDataSet.
I do not know what the user will set in the DataSource.
I tried this
Type myType = DataSource.GetType().UnderlyingSystemType;
??? myUnknownObjectInstance = (mytype)DataSource;
I guess it is not possible even with Reflection access a myUnknownObjectInstance.PropertyNameFromDisplayMember and assign it a value like "Peter" ?