Group By SPListItem in SharePoint ListItemCollection

The CAML Query does not support group by object collection. The other workaround is to get the object and group by LINQ query try { using (SPSite oSiteCollection = new SPSite(webUrl)) { using (SPWeb oWebsite = oSiteCollection.OpenWeb()) { SPList listName = oWebsite.Lists.TryGetList("MCS"); if (listName != null) { SPView myView = listName.Views["GroupBy"]; if (myView != null)... Continue Reading →

Create a website or blog at

Up ↑