I have a custom job that creates a view. In my custom view I want to display the column with the "linked to item type".
Thanks in advance
When you add the FieldRef inside the ViewFields add an Attribute LinkToItem="TRUE"
<ViewFields> <FieldRef Name="DocIcon"/> <FieldRef Name="Filename"/> <FieldRef Name="Modified" LinkToItem="TRUE"/> <FieldRef Name="Editor"/> </ViewFields>
If you're creating the view programatically then unfortunately there is no way to set this attribute through the SPViewFieldsCollection returned by SPView.ViewFields.
So you have to: