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

Data binding directly to a store query is not supported

Viewed:  1534 
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.


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();   


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