private void CargarComboTypes() { cmbTypeProduct.DropDownStyle = ComboBoxStyle.DropDownList; ///cmbPerfilType.Text = "Seleccione..."; cmbTypeProduct.DataSource = _productoController.GetAllTypes(); cmbTypeProduct.DisplayMember = "Descripcion"; cmbTypeProduct.ValueMember = "Code"; }
private void CargarComboProductType() { cmbProductTypeFilter.DropDownStyle = ComboBoxStyle.DropDownList; ///cmbPerfilType.Text = "Seleccione..."; var todo = new ProveedorType() { Code = 0, Descripcion = "Todo" }; var listCmb = _productoController.GetAllTypes(); listCmb.Add(todo); listCmb = listCmb.OrderBy(x => x.Code).ToList(); cmbProductTypeFilter.DataSource = listCmb; cmbProductTypeFilter.DisplayMember = "Descripcion"; cmbProductTypeFilter.ValueMember = "Code"; }