I have a List of Accounts:
List<Account> accountList;
Each Account has a ID
.
I want to set all of the Account
s ID
s in the accountList
into a Windows-Forms ComboBox
. How can I achieve that?
EDIT
Soultion using Linq
:
myCombobox.DataSource = accountList.Select(x => x.ID);