dzconception

dzconception

  • 2.1k
  • 56
  • 7.2k

combobox iteme group by problem ,???

Dec 26 2016 6:25 AM
  1. GrpCB.DisplayMember = "Groupe";  
  2.            GrpCB.ValueMember = "num_ligne";  
  3.            using (DBEntities db = new DBEntities())  
  4.            {  
  5.   
  6.                  
  7.   
  8.                GrpCB.DataSource = db.Grilles.GroupBy(p => p.groupe).ToList();  
  9.   
  10.            }  
this my code to add items to cb but i want group by field groupe
 
i have an errror of grouping
 
is there some correction ? 

Answers (2)