
To avoid this error use below code:
- GVEmployee.DataSource = (from em in context.Employee
- select new { em.Emp_ID, em.Name, em.City,
- em.Country, em.State }).ToList();
- VEmployee.DataBind();

Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
Gowtham RajamanickamPosted Mar 13, 2015, 2:06 AM
Good one...