I have to create a web part that displays all site collections under the root site. The requirements are:
1) the web part should look like the out-of-the box list
2) should display two columns, Title and created
3) Should be able to sort the columns
4) display a maximum of items between 5 and 10
I thought to use List view web part or XSLT List View Web Part, but since I don’t have experience in sharepoint I thought it will be really great if anyone of you has got an example, and please let me know which one is best to use.
Thank you for your help.
The
SPGridViewclass does exactly what you need.The blog post SPGridView and SPMenuField: Displaying custom data through SharePoint lists provides a good tutorial.