Custom Combobox control custom datasource with custom displaymember and valuemember
问题 I'm developing a custom combobox control that inherits from another combobox (Janus UICombobox). I'd like the datasource to be based on a EntityType (LLBLGEN) so that when a user selects a EntityType all the database records for that EntityType will be loaded in the combobox. This is going fine when I build and run, but I would also like to be able to give the user the apportunity to select the DisplayMember and ValueMember based on the selected EntityType. I have the following code: public