public SearchProductForm(List <Model.Product> proList) : this() { this.bindingSource1.DataSource = ProductList = productManager.SelectAll(); if (proList != null && proList.Count > 0) { ProductList.Where(p => proList.Any(pro => pro.ProductId == p.ProductId)).ToList().ForEach(pp => pp.Checked = true); } this.gridControl1.RefreshDataSource(); }