TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Data binding directly to a store query is not supported
Rahul Kumar Saxena
Feb 11, 2015
3.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
While binding Grid View with Entity Framework got this error.
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();
Data binding directly to a store query is not supported.
Next Recommended Reading
Bind JSon Data in GridView