SharePoint of the Day #52

SPList objects do not have property bags. However, every SPList has a Rootfolder property which is an SPFolder object. You can store list-specific settings in the SPFolder’s property bag.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 11, 2009

Tags:

SharePoint of the Day #47

If you need to retrieve the number of items in a list, use SPList.Items.Count. If you need to retrieve the number of items AND folders in a list, use SPList.ItemCount.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 4, 2009

Tags:

SharePoint of the Day #32

If you need a collection containing both list items and list folders, pass an SPQuery to the SPList.GetItems method. On the SPQuery object, set the ViewAttributes to “Scope=RecursiveAll” to get both folders and items from a list:
SPQuery q = new SPQuery();
q.ViewAttributes = “Scope=\”RecursiveAll\””;
SPListItemCollection listItems = list.GetItems(q);
Delicious Digg This Post

Posted under Developer

This post was written by spotd on May 14, 2009

Tags:

SharePoint of the Day #3

Did you know that you can create personal views on lists and libraries? On the View dropdown you can find a Create View link which will allow you to create a personalized view of a list or library.
Delicious Digg This Post

Posted under End User

This post was written by spotd on April 3, 2009

Tags: