Data binding directly to a store query is not supported

 
 
 
To avoid this error use below code:
  1. GVEmployee.DataSource = (from em in context.Employee  
  2.                                                 select new { em.Emp_ID, em.Name, em.City,  
  3.                                      em.Country, em.State }).ToList();  
  4.   
  5. VEmployee.DataBind(); 
Ebook Download
View all

Pristine

Read by 0 people
Download Now!
Learn
View all