SPListItemCollection listitemcollection = lstActive.GetItems(query);
var ids = listitemcollection.Cast<SPListItem>().SelectMany(li => new SPFieldLookupValueCollection(Convert.ToString(li["Column1"])).Cast<SPFieldLookupValue>().Select(lv => lv.LookupValue)).ToArray();
No comments:
Post a Comment