troubleshooting Question

Combobox.datasource = List<myobject>?

Avatar of brettr
brettr asked on
9 Comments1 Solution1949 ViewsLast Modified:
I have a List<> of myobject.  myobject looks like this:


I assign it to the combox box:

cmbbox.DisplayMember = "UserName";
cmbbox.ValueMember = "UserID";
cmbbox.DataSource = myobjectList;

When I run the app, it always comes through the combobox as namespace.myobject.  How can I get the values to bind correctly?  I've also tried BindingList<> but that didn't make a difference.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros