Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Data source is an invalid type. It must be either an IListS
Ghouse Hussain
8y
792
1
Reply
i have a query like
var count = db.Employees.Count (x =>(x.Salary >0));
Grid1.DataSource = count;
Grid1.DataBind();
but wen im execute its its throughing an error Like
Data source is an invalid type. It must be either an IListSource, IEnumerable, or IDataSource.
and wen i was writen code like Grid1.DataSource = count.tostring();
its not showing output properly
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Please help me How to create login page and homepage
asp.net master page