Object Model

SPGridView paging controls not displaying

  I’ve been meaning to blog this for a while so here goes. Recently I was working on a web part which contained an SPGridView. The SPGridView had been setup to allow paging but when I deployed the web part the paging controls would not display. Eventually after some playing…

SPListitem.File.Versions – System.Argument.Exception

I was writing some code yesterday to loop through the list items in a SharePoint list and then loop through each version of the SPListItem’s underlying file. Here is the code I was using – [code lang="csharp"] using (SPSite site = new SPSite("http://theserver")) { using (SPWeb web = site.OpenWeb()) {…