I have a combo box that is populated from entries in a SQLite table. The entries are city names.
Here is the code for the data binding:
cbb_City.DataSource = data; cbb_City.DisplayMember = "Accounts.City"; cbb_City.ValueMember = "Accounts.City";
It gets the values just fine but it has an entry for each record. There are only a couple of unique values and thats all I want.
How can I remove the duplicates and just have 1 entry for each city?