Share via


SPField.LinkToItem property

Gets or sets an indication of whether the field should show a link to the list item's display form when displayed in a list view.

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

Syntax

public bool LinkToItem { get; set; }

Property value

Type: System.Boolean
true, if the link is visible; false, otherwise.

Remarks

Attempts to set this property are ignored if LinkToItemAllowed is not set to Allowed.

If LinkToItemAllowed is set to ProhibitedLinkToItem is always false. If LinkToItemAllowed is set to RequiredLinkToItem, is always true.

See also

Reference

SPField class

SPField members

Microsoft.SharePoint namespace