SPFieldLookupValue Class
Contains the value for an SPFieldLookup object.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
love this control!
Makes getting those pesky lookup values a cinch!
SPFieldLookupValue fieldOne = new SPFieldLookupValue(listItem["Field"].ToString());
more to come on my blog, www.delphi-ts.com/blogs/lozzi.
- 8/4/2008
- David Lozzi
- 5/18/2009
- David Lozzi
Optional lookups give different values for "(none)"
If you have an optional lookup column in a list, and it's displayed as a large list, instead of a select, it will save '0;#' instead of null for "(none)" in the value!
A lookup column will have a regular select for display if there is less than 20 items in the list (I have not found any documentation, this is merely an observation), and another display if there are 20 entries or more.
- 2/5/2009
- Peter Ekerot