I am having a big trouble with showing data in a gridview.
All the guides on the internet is using LINQ, but i can not use that, because i create new Lists in Sharepoint, that therefore would not be in the entity class file.
I would be really glad if somebody could show how to get data from a list and show it in a webpart wihout LINQ:
I have this now:
SPSite _sc = SPContext.Current.Site;
SPWeb _w = _sc.OpenWeb();
SPList l = _w.Lists["Navne"];
SPListItemCollection lic = l.Items;
foreach (SPListItem item in lic)
{
item.Title.ToString();
}
I have searched to find the solution, but no answers.