Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've added some site columns with an xml file and also created my contenttype in the xml. After deploying, a feature creates a lookup to another list (with c# code). How can I set te column order in the contenttype that the new lookup column is placed between the other columns? If possible with c# code...

share|improve this question

1 Answer

up vote 2 down vote accepted

I know that the fields order is from schema.xml

To chenge the order the key is :

SPFieldLinkCollection.Reorder

MSDN : http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldlinkcollection.reorder.aspx

http://www.directsharepoint.com/2011/11/change-column-order-in-new-and-edit.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.