/// <summary> /// CTor /// </summary> public CustomersByProduct(INorthwindService service) { InitializeComponent(); _dalService = service; // load products, sort them on ProductName asc. IEntityCollection2 products = _dalService.GetProductsSortedBy(ProductFields.ProductName, SortOperator.Ascending); // bind it to the combo box productSelectComboBox.DataSource = products; productSelectComboBox.DisplayMember = ProductFields.ProductName.Name; productSelectComboBox.SelectedIndex = 0; }