I have the list of items in object SPListItem item
. Is it possible to extract certain data from the ListItems
property?
The reason I want to do that is because I have a FieldName "AssignedTo" which returns null, even though I can see its value when debugging when using the following statement:
SPField field = item.Fields.GetFieldByInternalName("AssignedTo");
if (field != null)
{
SPFieldUserValue fieldValue = field.GetFieldValue(item["AssignedTo"].ToString()) as
SPFieldUserValue;
if (fieldValue != null)
{
assignToUser = fieldValue.User;
}
}
Now, in the ListItems
property I can go to ItemsData
and I can see the value is there, but how can I get it?
Any help appreciated!