Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SPList - Column and Column's data

$
0
0

Below source is printing the SPLookup fields from SPList. 

But the data retrieved appears to be incorrect. Help appreciated.

Data retrieved is:

ContentTypeID    Title     _ModerationComments

<GUID here>      City

//Get SPListItems collection
SPListItemCollection listItemCollection = spList.Items;

foreach (SPListItem listItem in listItemCollection)
{
foreach (SPField localfield in listItem.Fields)
   {
Console.WriteLine(localfield.InternalName);
Console.Writeline(listItem[localfield.InternalName].ToString());
                          
}																																																														
}
Not sure what is _ModerationComments.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>