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

Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 17, 2016, 1:04 AM EDT
Try this line of code,
Posted May 17, 2016, 8:57 AM EDT