Hi,
I have a ultracomboeditor and using a generic list as the datasource. I set the value member and display member properties to the correct properties of the object that is in the list (such as name and ID let's say). They are both strings.
When the list populates the items are blank. There are 7 items in the list...and there are 7 items in the drop down but there is no text. I know for sure the list has data and that the value/data members are correct. What am I missing?
Thanks,
Mel.
Ha...we can't believe we didn't see that. Thanks!
Yes, the ValueMember and DisplayMember you are using here are public members not public properties, so the BindingManager won't see them. They have to be public properties with at least a 'get' defined. They do not necessarily have to bet settable, but you need at least a property Getter.
I have some screenshots of the code...do you see something I am missing?
M
Hi Mel,
What you are describing is exactly what happens if your ValueMember and DisplayMember are set to properties that do not exist on the objects in the list. What is the type of object in your generic list, and what are the ValueMember and DisplayMember on your UltraComboEditor set to?