Display sharepoint Items as you want

Sagarp
Posted by Sagarp under Others category on | Points: 40 | Views : 2212
String Items;

SPSite Site = SPContext.Current.Site();



using (SPWeb Web = Site.OpenWeb())

{

SPList List = Web.Lists["First"];

SPView View = List.Views["All Items"];

SPListItemCollection ItemCollection;

ItemCollection = List.GetItems(View);

for (int i=0; i < ItemCollection; i++)

{

Items = ItemCollection[i]["Title"];

}



}

Comments or Responses

Login to post response