5

I'm using my SPList View to get the html code of extracted items by an SPQuery over the listview

SPList myList = mySite.RootWeb.Lists.GetByInternalName("ListINStr");
SPView oView = myList.Views["ViewTitle"];
SPQuery myQuery = new SPQuery(oView);
string MailHTMLBody = myList.RenderAsHtml(myQuery);

But since SPQuery.RowLimit is not defined it's set to a limited number of the view which I believe it's 30 however I need to get them all items , so how can I set myQuery.RowLimit to extract all items ?

8
myQuery.RowLimit = 0

I think if I'm correct: 0 = unlimited

Hope this helps. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.