LinkToItem property
Collapse the table of content
Expand the table of content

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)

public bool LinkToItem { get; set; }

Property value

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

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.

© 2015 Microsoft