Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
 

Data binding directly to a store query is not supported

Article:
Viewed:  744 
Posted On:  13/02/2015 10:31:05 
Get this error while trying to bind Grid View. 

 

While binding Grid View with Entity Framework got this error.

1.png

Image 1.

Now modify your code like below:

GVEmployee.DataSource = (from em in context.Employee 
                                                select new { em.Emp_ID, em.Name, em.City, 
                                     em.Country, em.State }).ToList();   

VEmployee.DataBind();  

  Comment:
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us