ComboBox how to bind List, seeking God

I get from the database table returns a List, I want to bind a field in a table to ComboBox now, how should do?

ServiceErrorLogService sels = new ServiceErrorLogService();
List<ServiceErrorLogInfo> seliList = sels.GetServiceErrorLogList();

The above seliList is I from data obtained; I want a field binding them to ComboBox,
I tried to traverse the seliList, and then use the item.add to the ComboBox, but in this case, call the ComboBox.SelectedValue method on the back error, seeking God taught´╝ü

Started by Les at November 25, 2016 - 4:49 PM

Set the Combobox.ValueMember=Value attribute name;
Combobox.DisplayMember= displays the attribute name;

Posted by Sebastian at November 27, 2016 - 5:48 PM

Well, thank you. I first began to write wrong

Posted by Les at December 11, 2016 - 5:55 PM