Is there a way to run this LINQ statement
var items = from SPListItem li in listSettings.Items
where li["WebID"].ToString() == SPContext.Current.Web.ID.ToString()
orderby li["Title"].ToString()
select li;
and simply bind it to my SPGridView, like
gvList.DataSource = items;
gvList.DataBind();
and have the SPGridView use the fields in the SPlistItem? My current workaround is to do
select new { ID=li.ID.ToString(), Title=li["Title"].ToString(),Frequency=li["Frequency"].ToString(),Batch=li["Batch"].ToString(),LastDownloaded=li["LastDownloaded"].ToString() }