SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating a LookUp Column Programmatically for a custom list which is already there, and trying to change the property shown in attached picture using C#, but I couldn't figure out whats the name of the property or any code to change it.

If I know the name of the property, then I can use method

"SetCustomProperty(property name, value)"

I am using Moss for Dev.

Cheers enter image description here

share|improve this question
up vote 1 down vote accepted

You are looking for the SPFieldLookup.LookupField Property.

However, this property is write-once. If you try to change it after it has been set, you will get an exception.

share|improve this answer

Your Answer


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.