If you are working with Lookup columns you can cast the list item values into SPFieldLookupValue objects to retrieve the individual properties:
SPFieldLookupValue value = new SPFieldLookupValue(item["LookupColumn"].ToString());
int lookupID = value.LookupId;
string lookupValue = value.LookupValue;
Posted under Developer
This post was written by spotd on May 18, 2009


