I am trying to databind a database table with two columns to a combobox, can this be done with linq2sql/dbml? Seems like it should be possible, but I can't find an object property to assign as the DataMember, even trying the reflection tricks mentioned in other posts.
var itemslist = from items in dbcontext.itemslisttable select items;
comboBox1.DataSource = itemslist;
comboBox1.DisplayMember = ???
something like
comboBox1.DisplayMember = itemslist.ItemDescriptionColumn.Name;
or
comboBox1.DisplayMember = itemslist.First().ItemDescriptionColumn.Name;
am I way off here, should I just use a string literal and be done with it?