SPFieldLookup.GetFieldValueForClientRender method

SharePoint 2013

Converts the field type value into object for use in client Display, Edit and New item forms.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public override Object GetFieldValueForClientRender(
	SPItem item,
	SPControlMode mode


Type: Microsoft.SharePoint.SPItem

An object containing a value of for this type of field.

Type: Microsoft.SharePoint.WebControls.SPControlMode

A value that specifies whether the returned object should be suitable for the Display form, or Edit form, or New form.

Return value

Type: System.Object
An object containing a representation of the field value used for client rendering in the form designated by mode.

This override returns a set of lookup IDs and lookup values as a string.